Inject the application into the commands to avoid usage of global

Refs #68