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