OH3: Execute command with Cell Widget press

may be, this could help:
Beginner’s guide to an openHABian reboot/shutdown switch