# Define variables $url = "https://download.greenbeanit.com/dosa/DEXISSoftwareManagerSetup-1.6.0.21.exe" $destDir = "C:\temp" $fileName = "DEXISSoftwareManagerSetup.exe" $filePath = Join-Path $destDir $fileName # Download the file $ProgressPreference = 'SilentlyContinue' Invoke-WebRequest -Uri $url -OutFile $filePath Start-Process -FilePath $filePath -ArgumentList "/S" -Wait -Verb RunAs