I'm trying to stop an iis site using PS, but also trying to skip the annoying confirmation box
If I run the following script accepting the confirmation it will stop it just fine
SAPS PowerShell -Verb RunAs -ArgumentList "Stop-IISSite -Name 'website'"
However if I add the cmdlet to set the confirmation as false it does not give me any error or the confirmation, but it doesn't stop the site.
SAPS PowerShell -Verb RunAs -ArgumentList "Stop-IISSite -Name 'website' -Force -Confirm:$false"
Any idea why?