It sounds like you want RotateEntity with the optional global flag set to True. Something like RotateEntity cube,0,90,0,True
Unless I'm misunderstanding you (which is rather likely actually.)
Unless I'm misunderstanding you (which is rather likely actually.)