I'm trying to write a powershell script that prompts for credentials and opens a webpage as the user. I have
start-process -credential (get-credential) -filepath "http://www.microsoft.com"
It prompts for credentials, but then it outputs "This command cannot be run due to the error: The system cannot find the file specified."
I've tested it without the get-credential piece and it works fine. What am I doing wrong?