Complex sentence: Harney joined Winfield Scott's Army as senior cavalry officer, where he fought with distinction at the battle of Cerro Gordo, and received a promotion to brevet brigadier general.
Split into simpler sentences: Harney joined Winfield Scott's Army as senior cavalry officer. Fighting with distinction at the battle of Cerro Gordo he received a promotion to brevet brigadier general.