code: function sh(cmd, env = {}) {
    let args = cmd.split(/\s+/);
    console.log(args.join(" "));
    let exe = args.shift();
    // Use this node if node is specified.
    if (exe === "node") exe = process.execPath;
    let r = spawnSync(exe, args, {
      stdio: 'inherit',
      env: { ...process.env, ...env }
    });
    if (r.error) throw r.error;
    if (r.status) {
      console.log("Error", args[0]);
      process.exit(r.status);
    }
  }
docs: Runs a new subprocess synchronously.
  We use this instead of shell scripts to support Windows.
  The process arguments are forwarded to commands.
  This is so one can run ./tools/tslint.js --fix