RunCmd... methods refactoring