@echo off setlocal REM Run the PowerShell installer from the same directory as this .bat file. REM Works even if PowerShell's execution policy is Restricted. echo. echo bash-for-windows installer echo. powershell.exe -NoProfile -ExecutionPolicy Bypass ^ -File "%~dp0install.ps1" %* if %ERRORLEVEL% NEQ 0 ( echo. echo Installation failed. See error above. pause exit /b %ERRORLEVEL% )