No need to modify the script, you can reference it directly in a button:
@nodeselect Rename PRESET=45103b
https://resource.dopus.com/t/how-to-use-rename-presets-from-this-forum/26726#using-a-rename-preset-outside-the-rename-dialog-5