(new-object system.net.webclient).downloadfile code example Example: powershell download file Invoke-WebRequest URL -OutFile c:\file.ext