@echo off echo %cmdcmdline% | findstr /i /c:"%~nx0" >NUL && set iscommandline=1 echo %PSModulePath% | findstr "%USERPROFILE%" >NUL && set ispowershell=1 cd /D "%~dp0" echo. @REM IF %* == "" echo "Module tag not specified." @REM #set /p "ModuleTag=Insert module tag: " @REM ) ELSE ( @REM #set "ModuleTag=%*" @REM ) @powershell -NoProfile -ExecutionPolicy Bypass -Command .\scripts\extract-elx-internals.ps1 -ModuleTag %* echo. IF DEFINED iscommandline IF NOT DEFINED ispowershell pause