1rem Save working directory so that we can restore it back after building everything. This will make developers happy and then
2rem 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.
3pushd "%~dp0"
4
5"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -WindowStyle Hidden -File download_vc_redist.ps1
6
7exit /B %ERRORLEVEL%