I came across this one today. Take the following example:

```Enter-PSSession -ComputerName servername -Authentication Credssp -Credential domain\username
```\$w = Get-SPWebApplication -Identity http://portal