code: function handleStdoutStderr(settings) {
    if (settings.options.stdio !== "ignore") {
      settings.scriptHandler.stdout.on("data", function (stdout) {
        if (typeof settings.stdoutFunction === "function") {
          settings.stdoutFunction(stdout.toString("utf8"));
        }
      });
  
      if (typeof settings.stderrFunction === "function") {
        settings.scriptHandler.stderr.on("data", function (stderr) {
          settings.stderrFunction(stderr.toString("utf8"));
        });
      }
    }
  }
docs: Handle script STDOUT and STDERR: If 'options.stdio = "ignore"' is set, there are no script STDOUT or STDERR.