You don’t need anything fancy… just the “post-action” settings on a blank task.
I’ve put together a blank task which will restart an endpoint within 5 minutes (specified on the “Post-Action” tab of the ActionSettings dialog).
All you need to do with this task is configure the Execution start time and when it should reapply to get it to restart your endpoints on a weekly basis.
I’d also suggest marking the run-between hours just to keep it a tad safer when running in a production situation.