Extracted some validations from method Run() and placed them in method IsCommandValid()