code: function run(cmd) {
    try {
      if (isWindows)
        cmd = 'cmd /C ' + cmd;
      var code = shell.exec(cmd);
      return code;
    } catch (err) {
      if (err) {
        console.error(err)
      }
      return 1;
    }
  }
docs: Runs `cmd` synchronously returning the exit code.