CommandCollection Class

Definition

Defines a collection of Commands. This collection is used by Pipeline to define elements of pipeline.

public sealed class CommandCollection : System.Collections.ObjectModel.Collection<System.Management.Automation.Runspaces.Command>
Inheritance
CommandCollection

Methods

Add(String)

Adds a new command for given string

AddScript(String)

Adds a new script command

AddScript(String, Boolean)

Adds a new scrip command for given script