You mostly do not — as the original answer put it, they just do their own thing.
Battlefront 2's AI squadmates follow their own priorities: they engage targets they consider threats, move toward objectives and revive fallen allies when it suits them. There is no command wheel. What you can influence is positioning — fight where they are already pushing and you will find support, whereas charging off alone leaves you exposed.