yeah, I did try, the LoadFrom method throws an exception...
with the command "[void][reflection.assembly]::LoadFrom((resolve-Path ".\Renci.SshNet.dll"))" in 64bit you get the exception
Exception calling "LoadFrom" with "1" argument(s): "Could not load file or assembly 'file:///C:\data\Scripts\SSH\Renci.
SshNet.dll' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)"
At line:1 char:38
+ [void][reflection.assembly]::LoadFrom <<<< ((resolve-Path ".\Renci.SshNet.dll"))
+ CategoryInfo : NotSpecified: (:) , MethodInvocationException
+ FullyQualifiedErrorId : DotNetMethodException
however, on the same host it loads fine in 32bit powershell. Unfortunately we don't have the option for running the 32bit powershell on the servers for this.
I would think a compile for 3.5 with x64 as the CPU target would be fine.