Created executeCommand function synchronizing std in/out/err of the rmt tool with the executed subshell