I am trying to use the lib to make connection to the target using the command below command from the library and it just hangs and never returns the output.
$session = New-PSSession -Name myhttpsSession -Credential $Cred -ComputerName 10.10.10.10 -UseSSL -SessionOption $pso
However, executing the same command directly from the powershell returns the session object.