How to set PowerShell 7 as default and remove other versions

Solution 1:

Follow these steps:

  1. Click on the down arrow and press settings
  2. A json file will open, and you will see a line near the top that has a parameter called defaultProfile with a UUID.
  3. Also you will see a line representing the UUID of the PowerShell 7.0
  4. Copy that UUID and put it in for defaultProfile

Good Luck!

Source:

https://www.codyhosterman.com/2020/05/defaulting-windows-terminal-to-powershell-7-x-core/