Syntaxerror: missing ; before statement

When I try this sentence in the second shell terminal:

mongo admin --eval ‘db.shutdownServer()’

I have this error:

Syntaxerror: missing ; before statement @(shell):1:clock6:

What can I do?

THanks

Most likely you ran this command while connected to mongo or paste the screen shot
quit the session and run at OS prompt.It should work