Updated command execution way

Most of the command will work now ( on linux & win both)