powershell download a local file code example Example: powershell download file Invoke-WebRequest URL -OutFile c:\file.ext