PowerShell Methods

(see also Protected Methods)
 NameDescription
public methodAddArgumentAdds an argument for a positional parameter of a command without specifying the parameter name. This method is introduced in Windows PowerShell 2.0.
public methodAddCommandOverloaded. Adds a cmdlet to the end of the pipeline of the PowerShell object. The variants of this method can add the command with or without specifying that the command should be run within a new local scope. This method is introduced in Windows PowerShell 2.0.
public methodAddParameterOverloaded. Adds a parameter to the last command of the pipeline. This method is introduced in Windows PowerShell 2.0.
public methodAddParametersOverloaded. Adds parameters to the last command of the pipeline. The variants of this method can specify the parameters as a dictionary or as a list. This method is introduced in Windows PowerShell 2.0.
public methodAddScriptOverloaded. Adds a script to the end of the pipeline of the PowerShell object. This method is introduced in Windows PowerShell 2.0.
public methodAddStatementAdds an additional statement to the end of the pipeline of the PowerShell object.
public methodAsJobProxyRetrieves a Windows PowerShell job proxy, which can be used to control the invocation of the command with the -AsJob parameter (to run a cmdlet in the background).
public methodBeginInvokeOverloaded. Asynchronously starts running the commands of the PowerShell object pipeline. This method is introduced in Windows PowerShell 2.0.
public methodBeginStopAsynchronously stops the currently running execution of the pipeline.
public methodConnectConnects synchronously to a running command on a remote server.
public methodConnectAsyncOverloaded.  
public methodstaticCreateOverloaded. Initializes a new instance of the PowerShell class.
public methodCreateNestedPowerShellCreates a nested PowerShell object within the current object.
public methodDisposeReleases all resources used by the PowerShell object. This method is introduced in Windows PowerShell 2.0.
public methodEndInvokeWaits for the pending asynchronous BeginInvoke call to be completed and then returns the results of the call. This method is introduced in Windows PowerShell 2.0.
public methodEndStopWaits for the pending asynchronous BeginStop call to be completed. This method is introduced in Windows PowerShell 2.0.
public methodEquals  (Inherited from Object)
public methodGetHashCode  (Inherited from Object)
public methodGetType  (Inherited from Object)
public methodInvokeOverloaded. Synchronously runs the commands of the PowerShell object pipeline. The variants of this method can invoke the pipeline with or without using input data for the first command, with or without using invocation settings that specify how Windows PowerShell handles the invocation, and with or without specifying an output buffer. This method is introduced in Windows PowerShell 2.0.
public methodStopSynchronously stops the currently running execution of the pipeline. This method is introduced in Windows PowerShell 2.0.
public methodToString  (Inherited from Object)

  Name Description
protected method Finalize  (Inherited from Object)
protected method MemberwiseClone  (Inherited from Object)

Send comments about this topic to Microsoft.
Show:
© 2014 Microsoft