Invoke WebRequest download file code example
Example 1: powershell download file
Invoke-WebRequest URL -OutFile c:\file.ext
Example 2: invoke-webrequest download file
$url = "http://mirror.internode.on.net/pub/test/10meg.test"
$output = "$PSScriptRoot\10meg.test"
Invoke-WebRequest -Uri $url -OutFile $output