Script to known the cms and version