public Reader runAndGetOutput(String command, String[] env, File workingDirectory)
            throws IOException, InterruptedException {
        Process process = Runtime.getRuntime().exec(command, env, workingDirectory);
        InputStreamReader reader =
                new InputStreamReader(process.getInputStream(), Charset.defaultCharset());
        BufferedReader bufferedReader = new BufferedReader(reader);
        process.waitFor();
        return bufferedReader;
    }
Run the given command and return the output written to standard out.

@param command          The complete command to run.
@param env              The environment to pass along to the Runtime.
@param workingDirectory The directory from which to run the command.
@return The output of the command written to standard out.
@throws IOException
@throws InterruptedException
tika-translate/src/main/java/org/apache/tika/language/translate/impl/ExternalTranslator.java