code: public static String run(String cmd, String... args) {
          ProcBuilder builder= new ProcBuilder(cmd)
                  .withArgs(args);
  
          return builder.run().getOutputString();
      }
docs: Static helper to run a process
  @param cmd the command
  @param args the arguments
  @return the standard output
  @throws StartupException if the process can't be started
  @throws TimeoutException if the timeout kicked in
  @throws ExternalProcessFailureException if the external process returned a non-null exit value