Thanks for the feedback I searched the UDF section and I'm using DIRPLUS.
I can find the needed folders, but I'm having problems using xcacls.vbs.
Here's my script so far
Code:

call DIRPLUS.kix
$xcacls = "c:\xcacls.vbs"
$cscript = "C:\windows\system32\cscript.exe"

$folders = Dirplus('c:\rootfolder','/s /ad /m homework')

For Each $folder In $folders
;? $folder
SHELL '$cscript $xcacls $folder /E /G "domain\user:LW"'
Next


This is the error I'm getting:
"Arguments Used: Filename is required and was not passed as an argument"
I'm a total newbie, so please go easy.
Thanks