I use the dotnet --list-runtimes method so I asked ChatGPT and it came up with this: "You can use the Get-ChildItem cmdlet to check the presence of .NET Core runtimes in the C:\Program Files\dotnet\shared\ directory.