The commander is the squad role: you can order four AI units to follow and fight alongside you.
That makes it the least exposed class on a contested map, since you are effectively leading a small escort rather than charging on your own. It suits players who would rather direct the fight than win it single-handedly.