Updated: April 27, 2016
Applies To: Windows PowerShell
Represents a collection of Command objects. This class cannot be inherited.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Adds a command to the collection.
Adds a script to the collection of commands. This string can contain any piece of Windows PowerShell code, such as "$x = 1".
Adds a script to the collection of commands along with a Boolean value that indicates that the script should be invoked within a new local scope.
Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.