get the pid and kill task in one cmd code example Example 1: cmd kill pid taskkill /F /PID pid_number Example 2: kill process in win by pid kill task by pid