Running a Symfony console command independently

I was trying to find a way to call a console command from another one, while modifying the container parameters, and ended up with this minimum-viable-bootstrap. It almost works - subsequent runs seem to get redefining-class errors. I ended up using Symfony Process instead.