test: use executable in spawn() test

Currently, the `test-child-process-spawn-typeerror.js` is calling `execFile()` on a JavaScript source file, which is causing failures on Windows. This commit switches to calling `spawn()` on an actual executable.

Closes #8930
cc: @misterdjules