Check out example codes for "download file by command line windows". It will help you in understanding the concepts better.

Code Example 1

Invoke-WebRequest -OutFile index.html http://superuser.com

Code Example 2

iwr -outf index.html http://superuser.com

Learn ReactJs, React Native from akashmittal.com