When I run exec('Stop-Process -name chromedriver');
(Stop-Process is a PowerShell command) I get the following error:
'Stop-Process' is not recognized as an internal or external command, operable program or batch file.
I ran by the PHP script containing that line from a PowerShell window with Admin privileges.
Any ideas?