Manual:CreateAndPromote.php

createAndPromote.php is a MediaWiki script that creates a new user and auto-promotes them to sysop and/or bureaucrat status. There is also an option to promote a user who already exists. You may need to create AdminSettings.php.