How to run a program in admin mode from the command prompt?
<p>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.</p>

<p>I haven't seen any other post that has all of these requirements.</p>

<p>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.</p>