public static IHost CreateHost(string name, bool isAsync)
        {
            IHost host;
            if (isAsync)
            {
                host = new AsyncPowerShellHost(name, _runspaceManager);
            }
            else
            {
                host = new SyncPowerShellHost(name, _runspaceManager);
            }

            return host;
        }
        public static IHost CreateHost(string name, bool isAsync)
        {
            IHost host;

            if (isAsync)
            {
                host = new AsyncPowerShellHost(name, _runspaceManager);
            }
            else
            {
                host = new SyncPowerShellHost(name, _runspaceManager);
            }

            return(host);
        }