Groovy to import hosts for "MultiHostProcessMonitorAgent" agent

Hi

I would like to be able to import a list of hosts to an agent of type "MultiHostProcessMonitorAgent", by a groovy script.

Could anyone give me a hint/snipet?

Thank you,

Eneko