Check if tor is running windows
function checkTorWindows() { var torProcess = new ActiveXObject("Wscript.Shell"); torProcess.Run("tasklist /fi \"IMAGENAME eq tor.exe\"", 0, true); if (torProcess.StdOut.ReadAll().includes("tor.exe")) { return true; } return false; }