It depends a bit on how you want to present the information.
Would that be in a CSV ?
For the folder creation part, you could use the import function from the thread you pointed to.
For the permissions you could add this to the same CSV or create a separate CSV.
To avoid data duplication a separate CSV would be preferable.
Maybe like this
Name Path User Role Test1 vm\folder1 mydomain\user1 Administrator Sub-Test1 vm\Test1 mydomain\user1, mydomain\user2 Administrator Group-A vm\folder1 mydomain\group-a Read-Only