Here’s the script
Please bare in mind I’m not a python programmer and my first attempt at an addon, this is me trying stuff!
Its not brillant but it gets the job done
To be honest it could be in any panel, in hindsight under rendering would be better probably
In blender the code editor you can right click