Shutdown one line command in the lecture notes doesn't work

on running, mongo admin --port 30000 --eval ‘db.shutdownServer()’, I’m getting the following error
2019-04-13T19:47:40.966+0000 E QUERY [thread1] SyntaxError: missing ; before statement @(shell):1:6

What is that I’m missing in running the command?

Please make sure you are running this command at os prompt(windows cmd or linux as appropriate in your case)
Most likely you ran it while connected to mongo

If you want to run at mongo prompt use below

MongoDB Enterprise m103-repl:SECONDARY> db
MongoDB Enterprise m103-repl:SECONDARY> db.shutdownServer()
server should be down…