I’ve done that sort of thing on my BTT SKR & BTT touchscreen system. I created a new “Actions” button on the front menu and have it point to the list of custom gcodes that are usually hidden under “settings → machine → custom”.
Here’s a link to my build
Cincinnati Lowrider2 Build