Calculation of RMSD and best-fit alignment of two sets of atoms using the mouse controls were described in section §. The same actions can be taken on the scripting level. Text interface also gives you more flexibility through the atom selection mechanism allowing to choose the atoms to fit/compare.