Trying to import information from nodejs to MongoDB

I got stuck while trying to import information from nodejs to MongoDB.

Here are the details:
The command that Mosh provided:
mongoimport --db mongo-exercises --collection courses --drop --file exercise-data.json --jsonArray

Error message:
mongoimport : The term ‘mongoimport’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a
path was included, verify that the path is correct and try again.
At line:1 char:1

  • mongoimport --db mongo-exercises --collection courses --drop --file e …
  •   + CategoryInfo          : ObjectNotFound: (mongoimport:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    

I googled it, and people insist that probably I didn’t include the correct path, which I did. I added C:\Program Files\MongoDB\Server\5.0\bin in advanced system settings.