Hello Saddique and thanks for using Wazuh,
If you are looking to execute a script every 5mins, an easy way would be to use a cronjob. Lets assume your script is script1.sh located at /etc/scripts and you are looking to run it and log the output to a file lets say logs located at ~/cron-logs, then the cronjob syntax will be ass follows:
*/5 * * * * /etc/scripts/script1.sh > ~/cron-logs/logs
You can copy & paste the above to your crontab file (You can open the file by using command crontab –e) while replacing with your own script name and path.
Hope this answers your question.
Best Regards,
Rolly