Normally it would either be the tty (we are running on windows) or the tty from a child_process, something like this:
var exec = require("child_process").exec,
path = require("path");
function executeCommand(command, folder, callback){
var childProc = exec(command, {
cwd: path.join(__dirname, folder)
}, callback || function(){});
childProc.stdout.pipe(process.stdout);
childProc.stderr.pipe(process.stderr);
}