FTP/Rename-ItemFTPWinSCP.ps1

function Rename-ItemFTPWinSCP {
    Param(
        # existing path of the item to rename
        [Parameter(Mandatory=$true)]
        [string]
        $OldPath,
        # name of the item to rename
        [Parameter(Mandatory=$true)]
        [string]
        $Name,
        # new path to rename the item to
        [Parameter(Mandatory=$true)]
        [string]
        $NewPath
    )

    $FtpScript = [string[]](Split-PathToFTPWinSCPScript $OldPath)
    $FtpScript += "mv `"$Name`" `"$NewPath/$Name`""
    Invoke-FTPWinSCP $FtpScript | Out-Null
}

Export-ModuleMember -Function Rename-ItemFTPWinSCP