The WMF uses a wrapper for their multiversion MWScript.php script to run scripts (such as maintenance scripts) for a specific wiki.
Instead of using something like:
php /data/mediawiki/mw-config/mw-config/multiversion/MWScript.php
a mwscript wrapper binary would make things easier to change, such as pathes inside of the mediawiki deployment.