Hello,
To execute scripts every time the device finishes booting, simply add them in the rc.local file located in the /etc directory by logging to the router via SSH.
You can also access the same file via WebUI, by navigating to System -> Custom scripts.
Best regards,
Žygimantas