May be this might be of any help to you:
After the installation of WinRM ctpv3 and powershell ctpv3 you need to reference the correct System.Management.Automation.dll.
First add a reference tag from within the csproj file that you wish to use the Automation library. To do this open the csproj file with a text editor and locate the starting tag; <ItemGroup>.
Inbetween these tags you should see a bunch of <Reference Include> tags. Locate the last </ItemGroup> tag and on the line before it place
<Reference Include="System.Management.Automation />
This will give you access to the System.Management.Automation.Remoting namespace.
You can now use the WSManConnectionInfo class which allows you create Remote Runspaces.
Enjoy!
<Code>
WSManConnectionInfo connectionInfo = new WSManConnectionInfo(
new Uri(liveIdconnectionUri),
"http://schemas.microsoft.com/powershell/Microsoft.Exchange",
creds);
connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic;
// create a runspace on a remote path
// the returned instance must be of type RemoteRunspace
Runspace runspace = System.Management.Automation.Runspaces.RunspaceFactory.CreateRunspace(connectionInfo);
</Code>
Source link:
http://www.vistax64.com/powershell/213821-ctp3-remote-runspace-net-c.html[
^]