Re: SessionRemoteException Class
The
See
https://winscp.net/eng/docs/library_powershell#example
Session.Open
throws an exception on its own. You need to catch it.
See
try ... catch
statement in this example:
https://winscp.net/eng/docs/library_powershell#example