I need to simply specify the $URL
& $Filename
(source destination basically) but do not know the syntax and assume this is where I would enter it:
function Get-FileFromURL {
[CmdletBinding()]
param(
[Parameter(Mandatory, Position = 0)]
[System.Uri]$URL,
[Parameter(Mandatory, Position = 1)]
[string]$Filename
)
Reference Source of above code:
Downloading large files in Windows command prompt / PowerShell
*Kobalt's comment.
Do I need to simply set $URL
& $Filename
prior to the function?