In March 1914, Madden was promoted to
major and assigned to command 2nd Battalion, 29th Infantry and the post at
Fort Niagara, New York. In August 1914, Madden was detailed to the
Quartermaster Corps and posted to
Fort Snelling,
Minnesota, where he was assigned to supervise construction projects. In August 1915, Madden was posted to
Fort Sam Houston,
Texas and assigned to duty as post quartermaster, quartermaster of the post's supply depot, and supervisor of construction projects as the fort was expanded in anticipation of U.S. entry into
World War I. In October 1915, Madden was reassigned as assistant to the chief quartermaster of the army's Southern Department, which was headquartered at Fort Sam Houston. In March 1916,
John J. Pershing was assigned to command U.S. forces on the
Mexico–United States border during the
Pancho Villa Expedition and Madden was assigned to his staff as quartermaster. In January 1917, Madden was serving as chief of transportation on the staff of Major General
Frederick Funston during Funston's command of the Southern Department, and carried out inspection tours of units throughout
Arizona,
New Mexico, and western
Texas. In July 1917, Madden was assigned to
World War I quartermaster duties on the staff of the
United States Department of War. In August 1917, Madden was promoted to temporary
lieutenant colonel, to date from May 15. Madden arrived in France soon after his promotion, and served first as quartermaster of the
1st Division, then as commander of Advance Section,
Services of Supply, American Expeditionary Forces, followed by assignment as assistant to the chief quartermaster of the
American Expeditionary Forces with headquarters in Paris. and production of canned goods, which were vital to the war effort, and he was promoted to temporary
colonel in January 1918, to date from August 5, 1917. In October 1918, Madden was promoted to temporary
brigadier general. He returned to the United States in February 1919 and was reduced to his permanent rank of lieutenant colonel in March. In April 1919, Madden was assigned to quartermaster duty in the office of the zone supply officer at the
Presidio of San Francisco. In November 1919, he was assigned to command the
19th Infantry Regiment at
Camp Harry J. Jones, Arizona. He was promoted to permanent colonel in April 1920 In 1925, Madden was assigned to the staff of the
Fifth Corps Area at
Fort Hayes,
Ohio. In September 1927, Madden was assigned to command the
26th Infantry Regiment and the post at
Plattsburgh Barracks, New York. In July 1930, he was assigned to
Fort Mason, California as commandant of the army's San Francisco General Depot. In March 1931, Madden was promoted to brigadier general, Madden reached the mandatory retirement age of 64 in March 1934, and he retired effective March 31. ==Retirement and death==