end task cmd code example
Example 1: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
Example 2: cmd kill pid
taskkill /F /PID pid_number
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
taskkill /F /PID pid_number