I have a Powershell v2 script that I use to do various things. When I run the script from my admin machine, it obviously runs under the account that I am logged in as.
This was fine, but recently I have a requirement where I need to run the script using the account FABRIKAM\ADMIN1. Basically, what I'd like is for the script to run under that account and the person running the script is prompted to enter the password before the script actually runs. Is this possible?