send script to all devices

Hi,

I was wondering if there is a way to send a script to some or all the devices monitored in the dude. I’ve seen that there is the ros_command() function available which takes routeros scripts as arguments. I’ve created the following function:

ros_command(/user {:local usuari [find name=whatever]; :if ([:len $usuari]!=0) do={enable $usuari}})

But I do not really know how to execute it in some or all of the devices monitored.

Any help will be appreciated.