Re: You cannot call a method on a null-valued expression.
So do you initialize the
See https://winscp.net/eng/docs/library_powershell#example
$session
anywhere?
See https://winscp.net/eng/docs/library_powershell#example