This will create a launchdaemon named 'com.jamfsoftware.task.YourCustomName.plist' that is loaded, has the correct mode/ownership and runs every 4 hours that calls 'sudo jamf policy -trigger YourCustomTrigger'.
This would have to correspond to a custom trigger/event in a policy you created that is scoped to these computers.
@Mitch260488 Take a look here for more info on launchdaemons - http://www.launchd.info/ . Any daemon or agent can be set to run at load, a specific period time (in seconds), or a specific calendar interval.
Personally, I use TextWrangler but you could use any text editor. Sublime is also popular.
Your launchdaemon might look something like the below:
Something to note for launchdaemons and scripts: I've found the easiest way to deploy them is with a JSS script. You can simply echo the contents into files in the appropriate locations. Much easier to manage than packaging them.
While I agree that a launchD is the best way to handle this issue, there is a jamfy alternative. You could create multiple policies all the same with the same scope. Then in each policy, say run once per day, only between the hours of xx-xx. One policy runs between midnight and 4am, the next between 4am and 8am, etc. It wouldn't run exactly every 4 hours, but it would allow a Jr. mac sysadmin to solve this problem without getting too fancy. Again, not my recommended solution, but it is a valid solution if you're not comfortable getting LaunchD to work.
You could also add a cooldown to the policy by incorporating a datestamp file and script to manage it. When the policy runs, the script will check that datestamp and if the current time is <4 hours later, it exits without doing anything. If the current time is >4 hours later, it executes and updates the timestamp.