Dynamic command handler class