As part of an import or backup routine you may wish to automate the downloading of a file from a protected web directory. You might have generated a PHP file to download a particular data view as a CSV or you might have access to another file to backup.
Whatever your reason, this can be achieved easily by using the following power-shell script.
Start-BitsTransfer -source https://USER:PASSWORD@path%to%peotected%file -destination C:\path%to%your%destination
Running this will start a BitsTransfer job to fetch your file and save it to the location you specify.