Hello Martin,
   I wanted to include .NET assembly into my script (which is just copying data from SFTP server). 
I downloaded WinSCP-X.X.X-Automation.zip package and extracted it into my PowerShell script folder. When I launched the script I got following error message:
    New-Object : The value supplied is not valid, or the property is read-only. Change the value, and then try again.
At C:\projects\AirFASE-script\copy-data-from-TVS_v1.1.ps1:21 char:19
+ $sessionOptions = New-Object WinSCP.SessionOptions -Property @{
+                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Object], Exception
    + FullyQualifiedErrorId : SetValueException,Microsoft.PowerShell.Commands.NewObjectCommand
    
When I normally installed WinSCP, the script worked well. I need to have the script simply portable to different machine without WinSCP installation. 
Can you pls. helo what could be wrong?
Thanks Jan