updating addCommand

WP CLI has updated the method to add commands and this now throws errors.

Using add_command resolves the errors.