$url = "paste_copied_url" $url += "&os=windows" $outputPath = "$env:windir\temp\DCAgent.exe" Invoke-WebRequest $url -OutFile $outputPath Start-Process -filepath $outputPath -Wait -ArgumentList "/silent"