use  System.Diagnostics.Process class'GetProcessesByName or GetProcessById or GetProcesses method to get the process object and call its CloseMainWindow or Kill method (as long as you have enough permissions)