Anything is Possible, part 63 You just can’t keep the Doctor down…or confined for long.
The Doctor uses a trick with his voice that he later uses, in his 4th incarnation, on Gallifrey to slip out of then Acting Chancellor Borusa’s office and past the Lord Castellan’s guards in the episode The Invasion of TIME.
I suggest the Doctor does not get himself lost in his quest to find the Commander.