Manual:CreateAndPromote.php

createAndPromote.php is a MediaWiki script that creates a new user and auto-promotes them to sysop status. You may need to create AdminSettings.php.