MUP hook to access mongo shell


I wonder if anyone ever used a post hook to access mongo via its shell.
The plugin API is not really documented and I have hard time to figure how to get into mongo from it. Something along the lines of :

hooks": {
    "post.mongo.start" (api)
      const config = api.getConfig();

If you want to access to the shell of the mongo container you can use the docker way, executing this on a server:
docker exec -it mongodb bash

Thanks @davideonmeteor , but this is not what I am looking for.
I’d like to use MUP hooks to access the mongo shell in order to execute statements, after the database has started.