The CACLS utility does not support a /Y switch to answer Yes to the ARE YOU SURE? Y/N prompt.
In tip 0971, we used the < c:\yes.txt syntax.
You can also use the following syntax to answer Y:
echo y| cacls <filename> /g <username>:<permission>
NOTE: There is no space between the y and the | (pipe).