In Star Wars Battlefront 2 for PC, aim at troops and press F4 to command them. The number of troops you can lead depends on your rank.