I have a particular user that has the rights to do this remote login. The PowerShell is run as this user, while the user is impersonated in the C# code. It's also this user's username and password I pass in as the PSCredential.