In an attempt to limit blast radius in the event of a malware attack I want to reduce access to existing folders on my network. I am looking for a PowerShell script that can be run on a folder by folder basis to parse down the sub-folder list and apply specific properties to existing folders. The number of sub-folders in each directory will be varied. This script will be run manually within each folder, that way I can keep track of folders are complete. I will be creating an access group unique to each folder. I have written a sort of pseudo code for what I had in mind - attached.