C# How to convert CredentialCache.DefaultCredentials to PSCredential?
===

I'm writing a c# program, it will use current user's credential to run a script.

How can I convert CredentialCache.DefaultCredentials object using in access web service to PSCredential object?

Or other better way to create PSCredential without storing username/password?

Thank you.