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