windows stop process from command line code example Example 1: cmd kill pid taskkill /F /PID pid_number Example 2: kill process in win by pid kill task by pid