I am trying to get a powershell script that I can call with one (or two) params.
Ideally I would like to pass only one paramter, the $Url and expect the script to figure out the filename and then download to that filename.
IF it does not figure out a filename, I can optionally pass a second parameter the $FolderPath
# get-FileFromUri.ps1
function get-FileFromUri {
param(