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. If you still use MediaWiki 1.16 or older, you may need to create AdminSettings.php.