Hoping you can help...I'm using the .NET assembly with PowerShell and need to add in some proxy settings. I'm using this example as a starting point:
I can't figure out the syntax I need to use in order to call the https://winscp.net/eng/docs/rawsettings method from within PowerShell. For example if I specify:
$sessionOptions.AddRawSettings = ("ProxyMethod","3") $sessionOptions.AddRawSettings = ("ProxyHost","PROXYSERVER") $sessionOptions.AddRawSettings = ("ProxyPort","8080")
I receive an error of "Cannot set the Value property for PSMemberInfo object of type "System.Management.Automation.PSMethod".
I'm sure I'm missing something pretty simple here, can anyone point in the right direction to how I can call the RawSettings in to the $SessionOptions variable within my PowerShell script?