Shell 'cmd /c echo o|cacls ...

some even have a direct /y switch

when you are piping/redirecting you usually need "cmd /c" or "%comspec% /c" or whatever
_________________________
How to ask questions the smart way <-----------> Before you ask