Complex sentence: He joined the New Hampshire state militia and commanded an artillery unit, until General Benjamin Pierce noticed him and recommended that he be commissioned as a Major in the regular army.
Split into simpler sentences: He joined the New Hampshire state militia and commanded an artillery unit. He was noticed by General Benjamin Pierce who recommended that he be commissioned as a Major in the regular army.