测试一下代码段
 static void Main(string[] args)
        {
            // command.getProcessList();
            Command command = new Command();       
            command.Output += Command_Output;
            command.Error += Command_Error;
            command.Exited += Command_Exited;
            while (true)
            {
                string cmd = Console.ReadLine();
                command.RunCMD(cmd);
            }
        }
可以加下语言类型,语法高亮,csharp