Not a noob question at all, fair when you’re starting with addons. You’re right that /data is the persistent storage for an addon. If you want your script to run on startup, you’d typically need to modify the run script or entry point of the addon itself.
When creating your addon, you can add a command in the Dockerfile or the run.sh (if you’re using one) that points to and executes your script from /data. Just make sure the script has execute permissions.
Keep in mind that if you’re editing a pre-existing addon container manually, those changes won’t survive a rebuild or update. Creating a custom addon based on what you need might be the more stable route.