Correct Syntax for an Action in OH2

Hello Community

I’m wondering about the right Syntax in rules for OH2.

Is it

sendCommand(Item, Action)
or
Item.SendCommand(Action)

Thank you