I am able to successfully execute your statement in my Mongodb shell.
My hunch is that your command does not have the correct double-quote characters around the values like “tt0084726” etc. See below:
db.moviesScratch.insertOne({_id: “tt0084726”,title: “Star Trek II: The Wrath of Khan”, year: 1982, imdb: “tt0084726”})
I think in the Mongodb error message below, 1 means “Line 1” and 33 means “33rd character”:
SyntaxError: illegal character @(shell):1:33
So it is trying to tell you that the 33rd character (from the left hand side) is the problem.
Maybe you could try this: if you are copying the command from some Word processor or something similar, then copy it in a plain vanilla text editor like Notepad or Vim or Emacs.
Then make sure you replace the characters around the values to double quote characters. That’s ASCII character 34 in the ASCII table. Then run it again in the Mongodb shell.
Or maybe you could copy the command below and paste it in your Mongodb shell:
db.moviesScratch.insertOne({title: "Star Trek II: The Wrath of Khan", year: 1982, imdb: "tt0084726"})
If you still face problems, do post again.