I tried @postanote answer but it started installing the same version.
Then I tried with winget and it worked:
winget
winget upgrade --id Microsoft.PowerShell