I know this issue occured a long time ago but I hit the same thing and resolved it an other way.
The setting node "terminal.integrated.defaultProfile.windows" had this value: "Windows Powershell".
But there was no matching key in "terminal.integrated.profiles.windows". I replaced "Windows Powershell" by "PowerShell" which was available.