run custom code off patchstick


I am wondering if (and how) it is possible to add a shell script to run after successful patching off the patchstick - or how to integrate a menu option for custom commands, for example launching a shell script i created to do certain tasks on the box to further customise my appletv.

thanks for some hints!