@powershell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/richcobrien/local-setup/master/setup-windows.bat','%TEMP%\setup-windows.bat')" && "%TEMP%\setup-windows.bat /git /cf" My testing, the above fails as the Path is not Found, the below works as expected. @powershell -Command "(new-object net.webclient).DownloadFile('https://raw.githubusercontent.com/richcobrien/local-setup/master/setup-windows.bat','%TEMP%\setup-windows.bat')" && "%TEMP%\setup-windows.bat" /git /cf