Hello fellow scripters, I thought I’d just this in here in case it may help someone.
Summary: Here’s a step-by-step tutorial on how to change registry permissions with PowerShell using the Get-Acl and Set-Acl cmdlets.
https://adamtheautomator.com/change-registry-permissions-powershell