Invalid Port number PuTTy. exe error message

Here comes a strange error message with PuTTY.exe. I have been using it for so many remote connections before. I try to just click on PuTTy.exe and then enter the remote host and the connection is established.
When I try to connect it through the command prompt, I am not able to establish a connection between the server and host.
I am getting an error message:
Invalid Port Number
When I try the same connection with Putty.exe, I don’t have any issues. Not sure what the problem could be.
