when maxwell got command of the papal armies