Complex sentence: Pepper remained in this capacity until June 1945, when he was ordered back to the Pacific and assigned to the V Amphibious Corps Artillery as its commander.
Split into simpler sentences: Pepper remained in this capacity until June 1945. Pepper was then ordered back to the Pacific and assigned to the V Amphibious Corps Artillery as its commander.