Create a scenario of it. Then expand the scenario and go to the scheduling option.
Right click on and create new scheduling. Select the agent on which you want to execute. hen provide a specific time when you want to start the execution.
Then go to the execution life cycle tab.
click on many times and provide the maximum number of repetitions you want.
Now provide the interval between repetitions to 5 seconds.
Save it and update the agent