There are many scripts similar to this one to do this.
https://gallery.technet.microsoft.com/scriptcenter/Create-Bulk-Users-from-csv-02d56b3b
more can be found searching here.
https://gallery.technet.microsoft.com/scriptcenter
--please don't forget to Accept as answer if the reply is helpful--
Regards, Dave Patrick ....
Microsoft Certified Professional
Microsoft MVP [Windows Server] Datacenter Management
Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.