public void TestMethod2() { using (var notepad = new WmiProcess(Environment.SystemDirectory + "\\notepad.exe", "localhost")) { Thread.Sleep(500); notepad.Start(); } }