// close_browser.php
<?php
// Run the batch file or PowerShell command to close the browsers
exec("taskkill /IM chrome.exe /F");
exec("taskkill /IM firefox.exe /F");

// Optionally, send a response back to JavaScript
echo "Browsers have been closed.";
?>