As far as I understand, you are trying to define automation on a playbook to run an automation you have written with certain periods, for this, creating it as a job, not as a task, will meet your requests. Jobs on XSoar are one of the features that already exist for this job. You can look here for this;