8,330 questions
Register-ScheduledTask
should help with #1:
https://learn.microsoft.com/en-us/powershell/module/scheduledtasks/register-scheduledtask?view=win10-ps
For #2 it is Import-GPO
:
https://learn.microsoft.com/en-us/powershell/module/grouppolicy/import-gpo?view=win10-ps
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten