How can I select which version of PowerShell (5 or 7) is used when I run PowerShell code in VS Code?
I am using Windows 11, which comes with Windows PowerShell version 5.x preinstalled. I also installed PowerShell version 7.x and VS Code. In VS Code, I want to choose whether my code runs in Windows PowerShell or PowerShell 7.