/// <summary> /// Initializes a new instance of the <see cref="PowerShellScriptingContext"/> class. /// </summary> public PowerShellScriptingContext() : base("PS> ") { _host = new PowerShellHost(Output); _runspace = RunspaceFactory.CreateRunspace(_host); Runspace.DefaultRunspace = _runspace; _runspace.Open(); UpdatePrompt(); }