@echo off setlocal EnableExtensions set "SCRIPT_DIR=%~dp0" rem Avoid passing a PowerShell 7 module path to Windows PowerShell 5.1. rem The release script needs the built-in Microsoft.PowerShell.Utility module. set "PSModulePath=" powershell.exe -NoLogo -NoProfile -ExecutionPolicy Bypass -File "%SCRIPT_DIR%build-v2-release.ps1" %* set "EXIT_CODE=%ERRORLEVEL%" endlocal & exit /b %EXIT_CODE%