Read the installed runtimes
**dotnet --list-runtimes** lists the modern runtimes; the registry key lists the .NET Framework 4.x version. An app needs one of the two, not both.
dotnet --list-runtimes
dotnet --list-sdks
Get-ItemProperty 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full' -ErrorAction SilentlyContinue | Select-Object Version,Release