It looks like you are already doing this in the automated manner
https://learn.microsoft.com/en-us/azure/azure-arc/servers/onboard-group-policy-powershell
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin