Process.KillProcess(int pid) code example
Example 1: mac kill process by PID
$ sudo kill -9 PID
Example 2: windows kill process
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F
$ sudo kill -9 PID
// Kill process by exe name
taskkill /IM "ProcessName.exe" /F