Why the need for a script or menu? When setting up UBL I just did G28 (home), G29 P1 (generate mesh), G29 P3 (fill unpopulated points - needed if your probe is far from nozzle so not the whole bed can be probed), G29 S1 (save mesh to slot 1), M500 (save to eeprom) on the Cura console and haven’t touched it since…