public static Result runCommand(String[] args, Map<String, String> vars)
      throws IOException, InterruptedException {
    return runCommand(args, vars, null, false);
  }
Runs a command with a given set of environment variables

@param args a String[] of the command and its arguments
@param vars a Map of String,String setting an environment variable to run the command with
@return Result
@throws IOException
@throws InterruptedException
ambari-server/src/main/java/org/apache/ambari/server/utils/ShellCommandUtil.java