FTP/Put-ItemFTP.ps1

function Put-ItemFTP {
    Param(
        # local file path to upload
        [Parameter(Mandatory=$true)]
        [string]
        $LocalPath,
        # FTP path to push the file to
        [Parameter(Mandatory=$true)]
        [string]
        $FTPPath
    )

    $FTPScript = Split-PathToFTPScript $FTPPath
    $FTPScript += 'lcd "{0}{1}' -f (Split-Path $LocalPath -Parent) ,[Environment]::NewLine
    $FTPScript += 'put "{0}"' -f (Split-Path $LocalPath -Leaf)
    Invoke-FTP -Script $FTPScript
}

Export-ModuleMember -Function Put-ItemFTP