Assembly: System.Management.Automation (in System.Management.Automation.dll)
The Command object can be used in two ways.
The AddCommand method of the PowerShell object can use the Command object when creating a pipeline.
Windows PowerShell provides two classes that can define a command. The PSCommand class allows you to build a pipeline of commands (A|B|C) that contain one or more cmdlets and scripts. In contrast, the Command class allows you to specify only a single cmdlet or script in the command.
This class cannot be inherited.