This script could be used to create folder for a one to one correspondence user. Also assign the appropriate permissions to each folder, that only the exact user and specified file admins get full control. Nobody can read or write in that folder except these users. Finally, it will generate a report to tell you which folder created successfully, and which did not.
IT Administrators may need to generate several folders to new comers as their home folder. For security reason, the home folder could only be accessed by the exact user and some admins. If you want to do so, you can use this script sample.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery