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.
Command Members
System.Management.Automation.Runspaces Namespace
| 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. |
Reference
Command ClassCommand Members
System.Management.Automation.Runspaces Namespace
Other Resources
Windows PowerShell SDKSend comments about this topic to Microsoft.