...but recognizes 'em just fine when manually entered on the command line.
First time I've seen this in four decades. A new install of win10 Pro 22h2. The batch file in question has run just fine for years on earlier installs. But now? I get this error:
'timeout' is not recognized as an internal or external command, operable program or batch file.
'cmd' is not recognized as an internal or external command, operable program or batch file.
Using 'cmd /c' to call another batch file, so nachurlly the thing just dies. Have checked a couple of other BAT files and those two commands are always kicked out. And, just discovered the that 'taskkill' is not recognized when using 'call' instead of 'cmd /c', though it is, when the called file is run from the command line! (???) Have run SFC with no joy.
Run as Administrator. Even if you don't want to use that on a regular basis, it could point to the issue.set path=where the existing Windows %path% is not included in the right side of the equals symbol