Hi
To make your PC from sleep automatically , we should create a scheduled task using task scheduler and please don't forget to ensure wake timers are enabled.
Here is the process about automatically waking your PC which we could refer to.
https://www.howtogeek.com/119028/how-to-make-your-pc-wake-from-sleep-automatically/
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
The "allow wake timers" setting is in this place.
--please don't forget to Accept as answer if the reply is helpful--
Best Regards