Added a CreateCommand overload for handling command parameters.