@echo off setlocal powershell.exe -NoProfile -ExecutionPolicy Bypass -File "%~dp0scripts\package.ps1" %* set "packageExit=%ERRORLEVEL%" if not "%packageExit%"=="0" echo Packaging failed. See the error above. if not "%LINKPORT_PACKAGE_NO_PAUSE%"=="1" pause exit /b %packageExit%