Registry api win7 compat
As described in the comment about add compatibility for windows 7 powershell default version (2.0) some methods used in the script are not available in windows 7. It seems powershell in windows 10 uses .NET version of the api (https://docs.microsoft.com/es-es/dotnet/api/microsoft.win32.registrykey?view=net-5.0) and windows 7 the netframework one (https://docs.microsoft.com/es-es/dotnet/api/microsoft.win32.registrykey?view=netframework-4.8)