Create a PolicyPak Scripts policy on the computer side.
When creating the Policy choose the option to Apply this policy to computer (default).
Choose PowerShell from the dropdown.
Then paste in the following script to the text field.
Your policy should look similar to the one below:
Skip the on revert action screen by clicking next.
At the Policy settings screen give the policy a descriptive name then click Finish.
You’re done, lastly, test your policy to ensure it runs as expected.
Note: This policy will create a local scheduled task that will reboot the PC daily at 9 AM even if no one is logged into the PC.