If what you're executing is not something huge,
doesn't require (m)any
external dependencies, and doesn't have user interaction, you can try
to (ab)use Scribunto's console AJAX interface:
Thanks, I used your example to set up a git repository with notes. I
planned to clone the full module-namespace with git, so modules in
MediaWiki can be managed (and locally tested) with git as well:
https://github.com/nichtich/wikidata-lua-client
Jakob