Hello Raju,
It would appear that you may have an outdated version of Powershell. As you can see in the enrollment instructions, you require Powershell v3.0 or later.
Additionally, do make sure you are using Powershell to run this command and not the Command Line Interface.
I hope you find this helpful. Do let us know if you need anything else.
Best regards,
Gonzalo