FTP/Get-ItemFTP.ps1

function Get-ItemFTP {
    param (
        [Parameter(Mandatory=$false)]
        [string]$FTPPath,
        [Parameter(Mandatory=$true)]
        [string]$Name,
        [Parameter(Mandatory=$false)]
        [string]$LocalPath = (Get-Location)
    )

    $FTPScript = Split-PathToFTPScript $FTPPath
    $FTPScript += 'lcd "{0}{1}"' -f $LocalPath ,[Environment]::NewLine
    $FTPScript += 'get "{0}"' -f $Name

    $FTPScript = "binary{0}{1}" -f [System.Environment]::NewLine, $FTPScript
    Invoke-FTP $FTPScript
}

Export-ModuleMember -Function Get-ItemFTP