command line download file windows code example
Example 1: cmd download file
bitsadmin.exe /transfer "JobName" http://download.url/here.exe C:\destination\here.exe
Example 2: download file by command line windows
Invoke-WebRequest -OutFile index.html http://superuser.com