kill a process in windiws code example
Example 1: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
Example 2: script to kill a process in windows
taskkill /PID 1234
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
taskkill /PID 1234