Just pass the -confirm:$false parameter to the command you are running and the annoying confirmation prompts go away. Beware that you must make sure you know what the command is doing before passing this parameter….the confirmation prompts are there for a reason. It does make changing permissions on ,say, 1000 public folders much less annoying though.