The script can be run on gateways only and not on management servers!
How can I run the script on multiple gateways (Ex: on a cluster). Do I have to run a script on each gateway?
For multiple gateways, we have another script. This allows you to run a single script for all of the gateways but a few requirements are to be met in order to execute the same. Find more details here