I think interesting be able to execute any script by RHQ UI. But today isn't possible to pass parameters to a script. My issue is described at http://www.jboss.com/index.html?module=bb&op=viewtopic&t=146353 Regards.
Env variables can be passed as well as optional parameters. Also poster wrote in the forums thread that it works for him And it would have been a Jopr jira anyway. Closing it.
This bug was previously known as http://jira.rhq-project.org/browse/RHQ-1288