modified call to gateway runCommand method. Now it passes String[] instead of String