Execute a Shellscript (as root) when pressing a button in the sitemap

Checkout this topic. It does a restart of openHAB, but you can modify that solution to run your shell script instead.