Pass commands to execute in OpenStack shell

I currently have the use case where I want to programmatically execute certain commands on an OpenStack shell. E.g.:

yaookctl openstack shell bash -c "apt update && apt install wget qemu-utils jq -y"
yaookctl openstack shell wget -O cirros.qcow2 http://download.cirros-cloud.net/0.5.1/cirros-0.5.1-x86_64-disk.img

As per the discussion on IRC/Matrix this works for other yaookctl shell commands, but not yaookctl shell openstack (nor yaookctl openstack shell). This might come in handy for CI jobs or integration tests.

A good place to start would be here.