Connet session:

$cred = Get-Credential domainusername
$session =
New-PSSession -ConnectionURI “https://LYNCFE.FQDN/OcsPowershell”
-Credential $cred
Import-PsSession $session

Disconnect session:

Get-PSSession | Remove-PSSession