@echo off setlocal pwsh -NoProfile -ExecutionPolicy Bypass -File "%~dp0Build-OlivePackage.ps1" %* set "OLIVE_EXIT_CODE=%ERRORLEVEL%" echo. if "%OLIVE_EXIT_CODE%"=="0" ( echo Build completed successfully. ) else ( echo Build failed with exit code %OLIVE_EXIT_CODE%. ) echo Press Enter to close this window. pause >nul exit /b %OLIVE_EXIT_CODE%