Re: winscp.exe (5.17.7.0) does not match version of this assembly
So please ask @tomohulk. This is not an official WinSCP module.
New-WinSCPSession : Exception calling "Open" with "1" argument(s): "The version of C:\Program Files\WindowsPowerShell\Modules\WinSCP\WinSCP-master\WinSCP\Public\..\bin\winscp.exe (5.17.7.0)
does not match version of this assembly C:\Program Files\WindowsPowerShell\Modules\WinSCP\5.17.5.3\lib\WinSCPNet.dll (5.17.5.0)."
At line:16 char:12
+ $Session = New-WinSCPSession -SessionOption $SessionOptions
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [New-WinSCPSession], MethodInvocationException
+ FullyQualifiedErrorId : SessionLocalException,New-WinSCPSession