Replaced getShellCmd with runShellCmd