Some tutorial for the exec binding for starters. Maybe it will help you get a fast kickoff.
https://community.openhab.org/t/openhab-exec-binding-explained-in-detail-on-433mhz-radio-transmitter-example