code: public static String executeQuery(String[] cmd) throws IOException, InterruptedException {
  	return Command.execute(cmd).getOutput();
      }
docs: execute a String query on command line
  
  @param query String to execute
  @return
  @throws IOException
  @throws InterruptedException