It’s called active hours. Active hours are a time range you can set to let your PC know when you’re usually using your device, so it won’t restart automatically during those times.
Here’s how to set up active hours:
Select the Start button and select Settings (or use Windows key + I), then “Update & security” and select “Change active hours.” Choose the start time and end time, and then select “Save.”
used with permission from the Windows Blog
by Elana Pidgeon