This topic has not yet been rated - Rate this topic

Command Constructor

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a new Command object. The variants of this constructor can create an object that contains the name of the command or an object that contains the command and a script indicator.
Name Description
Command (String) Creates a new Command object that contains the command to be run.
Command (String, Boolean) Creates a new Command object that contains a command and a Boolean value that indicates whether the object contains a script.
Command (String, Boolean, Boolean) Creates a new Command object that contains a cmdlet or script to run, plus two Boolean values that indicate whether the object contains a script and whether the local scope should be used when invoking the script.

Send comments about this topic to Microsoft.
Did you find this helpful?
(1500 characters remaining)