''mongod' command not working in VS code powershell

The 'mongod' command to run mongodb server is not working in powershell of VS code editor, It is working perfectly fine in WindowsPowerShell and Command Prompt . The environment variable is also set to

The VS Code error is as follows



Solution 1:[1]

From your screenshot, you are typing monogod (monogod), not mongod - you have an extra o after the n.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Matt Oestreich