Figured it out....somehow I must have deleted this line...from two scripts!?
$transferOptions = New-Object WinSCP.TransferOptions
$transferOptions = New-Object WinSCP.TransferOptions