I got an error from powershell:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
PS C:\> Start-Process -NoNewWindow -Verb RunAs
Start-Process : Parameter set cannot be resolved using the specified named
parameters.
At line:1 char:1
+ start-process -NoNewWindow -verb runas
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterB
   indingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.PowerShell.Comma
   nds.StartProcessCommand

This is because the Start-Process command has two parameter sets. Looking at the page linked, the parameters are listed in two groups. These groups can’t be mixed and matched. You have to pick one or the other. So if you want to do runas, you can’t use NoNewWindow.

This was a bit of a revelation to me, but I suppose it is one of those things that is so obvious nobody feels the need to point it out!