From the regular command prompt (not powershell), I want to run a program that requires admin mode. Since the program is long running, the window must remain open. The program requires command line switches and arguments.
I haven't seen any other post that has all of these requirements.
I stumbled upon a solution but don't understand why the argument passing works. Can someone explain? Is there a more powershell like way of doing the same? A bonus would be to add the ability for making a first-use password prompt and saves the password thereafter.