Maybe these are a good points to start with:
https://www.rebeladmin.com/2018/01/create-active-directory-user-objects-using-powershell/
https://www.lepide.com/how-to/managing-ous-with-windows-powershell.html
https://activedirectoryfaq.com/2017/08/creating-individual-random-passwords/
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten