Commands not running on my machine

I am trying to start with serverless framework. serverless framework has been successfully installed on my machine but when i am trying to run the below command its giving error.

Command : serverless login

Error Details : ‘serverless’ is not recognized as an internal or external command,
operable program or batch file.

Please guide me on this.