Place these scripts somewhere that will survive upgrades.
Refer to https://my.f5.com/manage/s/article/K64955452 for suitable locations.
My recommendation is /shared/scripts/[SCRIPT_DIR]
Make scripts executable using chmod +x [SCRIPT_FILE]
Execute normally or use cron/iControl for scheduled executions.