Download and Install VSCode from
https://code.visualstudio.com/downloadUse this command to check which versions are available
winget search Microsoft.PowerShell
Use this command on Windows 10 or 11 to install the latest Powershell
winget install --id Microsoft.Powershell --source winget
To install a specific version download from here
Launch VSCode and Install the Powershell extension from Microsoft