Hi @sns
Thanks for writing and we are happy to help you regarding the PowerShell script.
Please find more details about the register command in following URL.
Kindly try following command to register the PSGallery repository.
Register-PSRepository -Default
I'm able to register without any error
PS C:\Users\ravi2_000> Get-PSRepository
Name InstallationPolicy SourceLocation
PSGallery Untrusted *************
Here is a helpful page with information about Windows PowerShell
https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/powershell
------------
--If the reply is helpful, please Upvote and Accept as answer.--