-- Sorry, I'm poor English.
createProcess function is can't exec a *.cmd or *.bat file.
I can exec foo command when foo.cmd is placed of system environment variable paths. However, createProcess function is can't exec foo. (foo.cmd too)
It catch an error that error message is does not exist (No such file or directory).
reproduction screenshot

about this problem
This is not usually a problem. However, It may be a problem. For example, some of the commands built by NodeJS (with NPM) are wrapped with .cmd file.
Concretely, I'm facing this problem at here.