Problem:
Every time you run a PowerCLI script that performs an action on multiple ESXi servers you are given a prompt
Solution:
Change the default mode to use multiple ESXi servers as below:
Set-PowerCLIConfiguration -DefaultVIServerMode multiple -Confirm:$false