Mayapy Interpreter Error

Working in command line ( windows 10) mayapy interpreter
Why am I getting this error?

set PYTHONPATH=%PYTHONPATH%;C:\mayapybook\pylib
^
SyntaxError: invalid syntax

That’s not Python sytax, the mayapy interpreter is a Python environment. If you want to change the PYTHONPATH then you either need to set that from the shell (in shell syntax as you have) before starting mayapy, or change it from within Python (using Python syntax).

I strongly suggest you to try out mayapy manager from @Theodox, it saves a lot if time: