code: function exec(command) {
    var tempName = temp.path({suffix: '.exec'});
    var cmd;
    if (isWindows)
      cmd = command + ' > ' + tempName + ' 2>&1';
    else
      cmd = '(' + command + ') > ' + tempName + ' 2>&1';
  
    var code = run(cmd);
    var text;
  
    if (fs.existsSync(tempName)) {
      try {
        text = fs.readFileSync(tempName, 'utf8');
        fs.unlink(tempName);
      } catch (err) {
        throw new Error('ERROR: could not delete capture file');
      }
    } else {
      throw new Error('ERROR: output not captured');
    }
  
    return {
      code: code,
      stdout: text
    }
  }
docs: Executes `command` synchronously capturing the output.
  
  This is a wrapper around `run` function.