$ProgressPreference = "SilentlyContinue" $Link = "https://www.7-zip.org/a/7z2501-x64.exe" $File = "7z2501-x64.exe" $Path = "C:\Users\Public\Downloads" Invoke-WebRequest -Uri $Link -OutFile $Path\$File -UseBasicParsing Start-Process -FilePath $Path\$File -ArgumentList "/S" -Wait