$PSVersionTable said I have 5.1. I did the MSI install , but

When I re-run $PSVersionTable it still says I have 5.1

If you’re talking about PowerShell core (7.x.x) - that is not an update of “Windopws PowerShell”. It installs next to it. Run pwsh.exe instead of PowerShell.exe!

Thanks, Olaf. That worked!