“wizard” launches on of the built-in wizards. There are special Python scripts which work with PyMOL in order to obtain direct user interaction and easily peform complicated tasks.
wizard name
wizard distance # launches the distance measurement wizard