I don't know what the structure of your application is, but if you want to allow a command to run something that a controller does, then the typical way to do that is by having the intended code in a service that both controller and command has access to.
By using a ContainerAwareCommand, you give the command instance access to the service container, and thusly the service. Controllers by default have access to the service container.
Try to avoid jury rigging parts of your application together when they are designed to be separate. Give them access to the same services, but keep them apart.