PowerShell.Create Method (InitialSessionState)
Updated: April 27, 2016
Applies To: Windows PowerShell
Initializes a new instance of the PowerShell class with an empty pipeline and an initial session state; a script or command must be added before invoking this instance. Introduced in Windows PowerShell 3.0.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Public Shared Function Create ( initialSessionState As InitialSessionState ) As PowerShell
The initial session state with which to create the runspace.