Updated: April 27, 2016
Applies To: Windows PowerShell
Adds a list of modules to the initial session state.
Assembly: System.Management.Automation (in System.Management.Automation.dll)
Add a list of modules to import when the runspace is created.
This element is introduced in Windows PowerShell 5.0.
Adds a list of modules to the initial session state. These modules are imported into the runspace when it is opened. This method is introduced in Windows PowerShell 2.0.