Complex sentence: Hotaling, newly commissioned as a captain, was one of the commanding officers of Company A. He would also command company B of the same regiment at various times.
Split into simpler sentences: Hotaling, newly commissioned as a captain, was one of their commanding officers. Hotaling would also command company B of the same regiment at various times.