FTP/Invoke-FTP.ps1

function Invoke-FTP {
    Param(
        # ftp script to run against the FTP server
        [Parameter(Mandatory=$true)]
        [string]
        $Script
    )
    $server =  Get-TFSConfigKeyValue 'ftpServer'
    $user = Get-TFSConfigKeyValue 'ftpUser'
    $password = Get-TFSConfigKeyValue 'ftpPassword'
    
    "open $server
    user $user `"$password`"
    $Script
    bye"
 | ftp -i -in  
}

Export-ModuleMember -Function Invoke-FTP