System.NullReferenceException: Object reference not set to an instance of an object.
at System.Management.Automation.PSSnapInReader.ReadEnginePSSnapIns()
at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault()
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceConfigurationContainer.
GetRunspaceConfiguration(InitialSessionStateEntryCollection`1 variableEntries)
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceController.Initialize
(RunspaceConfigurationContainer configuration, InitialSessionStateEntryCollection`1 variableEntries)
at Microsoft.EnterpriseManagement.Common.PowerShell.RunspaceManager.
DeliverRunspaceThreadProc(Object appDomainObject)