How do you run git in Microsoft Powershell inside VScode?


I have installed git in Windows 10. It works in cmd and Powershell but it doesn’t work (get error can’t find file) in Powershell in VScode. If I type the path c:”Program Files”itcmdgit it works in Powershell in VScode. I originally installed VScode as User but then reinstalled it as System but still same problem. I checked path in Environment in Windows 10 and it is there. I can run other programs (e.g notepad calc) in Powershell in VScode. I would prefer not to have to type the path time.
Is there some setting I have to set in VScode?
Any help appreciated