Aother way to do this would be a simple rule that would, at the desired time, just issue an actuator command on the user contributed device by Dominick Meglio (@dman2306), Hubitat Hub Controller. That way, you could have a test of an appropriate free memory attribute from @thebearmay’s Hub Information device.
All of these can be installed by Hubitat Package Manager. I don’t use Hub Controller to reboot, but instead use it to shut down my hub on power fail.