Manual:CreateAndPromote.php

Details
createAndPromote.php is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script that creates a new user or modifies an existing user.

For the corresponding user, the script can then grant him additional rights (e.g. sysop, bureaucrat or bot rights) and change the user's password.

Since the script can be used not only to create new users, but also on existing users to promote them, and also to create a user without promoting him, the name createAndPromote.php is somewhat misleading.

Example
This creates a new user called "WikiSysop", sets his password and adds the user to the bureaucrat group, the sysop group and to the custom developer group.