runCommand now returns JSON object as its result