Is it possible to run a FOR statement inside either distribution or launch scripts because they both seem to fail :(

Code:
FOR /f %%z IN ('dir /b "c:\documents and settings"') DO (
	rmdir /S /Q "c:\documents and settings\%%z\Application Data\MyAPP"
)

Script Engine Location: cmd.exe /c
Extension for the script file: .bat
Distribute in Workstation Security Space: checked