public DynamicPsHost(DynamicPowerShell powershell)
            {
                this.instanceId = Guid.NewGuid();
                this.powerShell = powershell ?? throw new ArgumentNullException("powershell");
                this.ui         = new DynamicPsUserInterface(this);

                this.log = LoggerProxy.Create(this.GetService <ILogger>(false), "Powershell");
            }             // ctor
			public DynamicPsHost(DynamicPowerShell powershell)
			{
				if (powershell == null)
					throw new ArgumentNullException("powershell");

				this.instanceId = Guid.NewGuid();
				this.powerShell = powershell;
				this.ui = new DynamicPsUserInterface(this);

				this.log = LoggerProxy.Create(this.GetService<ILogger>(false), "Powershell");
			} // ctor