I want to execute a cmd command but in the client side not in the server side, can i do that with JavaScript for example on chrome ?
There is a good reason this is not allowed and it is safety. Imagine those horrible things someone can do if they had access to your terminal. If you mean the server instead, look for a program like nodejs for server side js code.