I’m doing something similar. I have an automatic computer group from this relevance:
uptime of operating system > 7*day
Then I just point an action @ that group. Then that runs @11P daily. If this condition is true, computer gets restarted in 5 min.
Pretty similar to what others are doing, but I find this to be easy to replicate and add properties for more granular control over this activity (for instance don’t restart sql servers, etc.)