registerCommands method

Automatic registering third-party commands, this new feature can extend console commands