Use reflection to add addCommand method that takes the name of the class
as a string.