Hello, here is an example .bat file that I have seen used before.
good day.
@echo off
echo Use this file to create user accounts Student11 through Student45
echo in your current domain.
echo.
echo To stop, press Ctrl-Break and terminate the batch job.
echo.
pause
net user Student11 password /add
net user Student12 password /add
net user Student13 password /add
net user Student14 password /add
net user Student15 password /add
net user Student16 password /add
net user Student17 password /add
net user Student18 password /add
net user Student19 password /add
net user Student20 password /add
net user Student21 password /add
net user Student22 password /add
net user Student23 password /add
net user Student24 password /add
net user Student25 password /add
net user Student26 password /add
net user Student27 password /add
net user Student28 password /add
net user Student29 password /add
net user Student30 password /add
net user Student31 password /add
net user Student32 password /add
net user Student33 password /add
net user Student34 password /add
net user Student35 password /add
net user Student36 password /add
net user Student37 password /add
net user Student38 password /add
net user Student39 password /add
net user Student40 password /add
net user Student41 password /add
net user Student42 password /add
net user Student43 password /add
net user Student44 password /add
net user Student45 password /add