Updated command execution way

Most of the command will work now (Win & linux both).