use runCommandAndWait(...) instead of runCommand(...)