The oneliner script would be: Invoke-WebRequest -uri '' -OutFile '$env:userprofile\Downloads\ChromeSetup.exe' Powershell can do it with just one line of code (or more if you want to go fancy here.īecause I don't know the url of the file you want to download, I'll use Chrome as example, and save the file to the download folder in your user profile.
In any case, Powershell is going to help a lot here. We're missing a bit of information in this post to construct a proper answer.