Please have a look at the following:
const { spawn } = require(\'child_process\'); const child = spawn(\'c:\\\\cygwin64\\\\cygwin.bat\'); process.stdin.pipe