Dashboard doesn't have a way to run custom commands, which is what yours is (something not required as part of a "standard" device capability). What I would do is create a virtual device (a switch with auto off or a button would be good choices), then expose that device on the Dashboard instead. Then create a Rule that will call your custom command (Rule Machine can do that) when your switch is turned on or button pushed.
I'm not sure how familiar you are with the platform (guessing pretty familiar if you're developing a driver), so if none of that makes sense, let me know and I can explain more.
I have some development / groovy experience so it should be ok, actually the completed parte Is finding good developer oriented documentation on the platform.
I have been reading old ST stuff but it not always the same...
Sounds like you've got the rest of the rule figured out, so the action category that you want instead of "Control HSM, Locks, Garage Doors, or Valves" (assuming that's what you're using) is "Set Mode or Variables, Run Custom Action." Then you can choose "Run Custom Action," and in the list, you should see your custom command. Something like this:
If you need me to back up, let me know! Otherwise I'm assuming you already have a rule with a Button or Button Device trigger type and have already found out how to make the rule actions run on, say, button 1 pushed (or whatever you're using).