Hello,
Thank you for posting in Q&A forum.
To achive this purpose, it's more recommended to use system power state S3 as in S0 the scheduler will not run as expected.
When it's going to S3, you can configure a task scheduler or scripts which will turn off the PC regularly.
REF: https://learn.microsoft.com/en-us/windows-hardware/drivers/kernel/system-sleeping-states
I hope the information above is helpful.
If you have any questions or concerns, please feel free to let us know.
Best regards,
Jill Zhou
If the Answer is helpful, please click "Accept Answer" and upvote it.