Hi,
Based on my understanding , if the powershell script is the change the registry , the users need the permission . And in a Logon script, we can't modify the permission.
You can considered to use a task schedule GPO to do this or consider the method YoussefSaad provided.
For more details you can refer to the following link:
https://learn.microsoft.com/en-us/answers/questions/66387/running-powershell-startup-logon-scripts-using-gpo.html
Best Regards,