From February 5 to 7, 1865, Scott led his men in the Battle of Hatcher's Run. Then, as part of a reorganization of Pennsylvania units, he and the other men from the 157th Pennsylvania were merged into the 191st Pennsylvania Infantry on March 21, 1865, and assigned to the Appomattox Campaign. Just over a week later, Scott performed the act of valor for which he would later be awarded the U.S. Medal of Honor. Engaged in hand-to-hand combat while leading his men in the Battle of Five Forks, Virginia on April 1, 1865, he captured the battle flag of the 16th South Carolina Infantry. He was also brevetted as a major for his meritorious service that day.