I was getting a similar error. These resources helped. Thanks!
- alexia1
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
Add-Type -Path "WinSCPnet.dll"