I am facing this exact problem with that exact words in vs code. I tried reinstalling vs code but that doesn't work and i also tried reinstalling powershell but that also does not work.
This does not happen when i use windows powershell,cmd,bash as terminal so it's a problem with powershell (version 7.2.5) i am using windows 7.