Shell command executor using ProcessBuilder for JVM platforms.
Executes a shell command and returns combined output and exit code.