terminate using cmd code example
Example 1: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
Example 2: kill process in win by pid
kill task by pid
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
kill task by pid