Assembly: System.Management.Automation (in System.Management.Automation.dll)
Return ValueReturns an InitialSessionState object that contains the default commands, such as the Get-Help and Get-Command cmdlets.
This example shows how to define an initial session state that adds two variables to an initial session state.
Notice that is this example, the CreateDefault constructor is used to create an initial session state that includes the default commands provided by Windows PowerShell.
To create an initial session state that does not include the default commands, call the Create method.