Your attached script starts from the permissions.
If a folder is not listed that could mean that there are no explicit permissions on that folder.
Is that perhaps the case for the two missing folders ?
You could go for a script that lists all the folders and then shows the permissions (implicit and/or inherited) for that folder.
Something like the attached script.
With the $inherited variable you can define if inherited permissions should be reported or not.
Note that the script will not list permissions that are assigned on other entities (like for example guests).