Replaced Jasy's executeCommand with own local version without output buffering.