Call controller action from command

How can I call controller action from command?

I can’t just call controller action url, because this url has no public access.