rem Save working directory so that we can restore it back after building everything. This will make developers happy and then rem switch to the folder this script resides in. Don't assume absolute paths because on the build host and on the dev host the locations may be different. pushd "%~dp0" "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File download_vc_redist.ps1 exit /B %ERRORLEVEL%