Cornell was appointed brigadier general of Rhode Island state troops on December 1, 1777 and served until March 16, 1780. He commanded a brigade of state troops consisting of two infantry regiments of eight companies each and an artillery regiment of four batteries. Cornell played an active role at the Battle of Rhode Island in 1778.