We can assume that the personal starship is the brain, therefore the main gland that can be considered the captain of the starship would be the "Pituitary Gland". This gland is in charge of of controlling the growth and development of the body as well as the proper functionality of the other glands. Therefore it makes sense that it would be the captain.
**Also I had this same question in High School**
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.