File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
reference/5.1/Microsoft.PowerShell.Core/About Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,9 @@ because it has no special meaning to the current **cmd.exe** shell. The
138
138
** Command** parameter, since there it will be interpreted as PowerShell code.
139
139
140
140
When the value of ** File** is a file path, ** File** _ must_ be the last
141
- parameter specified because any characters typed after the command are
142
- interpreted as the command arguments.
141
+ parameter in the command because any characters typed after the ** File**
142
+ parameter name are interpreted as the script file path followed by the script
143
+ parameters.
143
144
144
145
You can include the script parameters and values in the value of the ** File**
145
146
parameter. For example: ` -File .\Get-Script.ps1 -Domain Central `
You can’t perform that action at this time.
0 commit comments