Each -Verb
and -NoNewWindow
parameters belong to different parameter sets of Start-Process
cmdlet. For more information about parameter sets, read
Get-Help about_Functions_Advanced_Parameters
and see Cmdlet Parameter Sets in the Cmdlet Parameters MSDN article.
Observe the following self-explicating results:
PS D:\PShell> $y=(Get-Command Start-Process).ParameterSets
PS D:\PShell> $y.Count
2
PS D:\PShell> $y.Name
Default
UseShellExecute
PS D:\PShell> Compare-Object $y[0].Name $y[1].Name
InputObject SideIndicator
----------- -------------
UseShellExecute =>
Default <=
PS D:\PShell> Compare-Object $y[0].Parameters.Name $y[1].Parameters.Name
InputObject SideIndicator
----------- -------------
Verb =>
Credential <=
LoadUserProfile <=
NoNewWindow <=
RedirectStandardError <=
RedirectStandardInput <=
RedirectStandardOutput <=
UseNewEnvironment <=
PS D:\PShell>