void createRunspace(CustomHost host) { var runspace = RunspaceFactory.CreateRunspace(host); runspace.Open(); host.PushRunspace(runspace); }
public PowerShellEngine(IShellUI ui) { host = new CustomHost(ui); createRunspace(host); }