I have used the same command 20 times over the last week, and now it not working.
I go to the directory C:\Program Files\MongoDB\Server\5.0\bin and use the command mongod
For some reason now I get an error
mongod : The term ‘mongod’ is not recognized as the name of a cmdlet, function, script file, or operable program.
Edit: For those who may have the same problem. I now have to use the following to get it to work