 Complete the following phrase:  In 1801, Melo e Castro was named Secretary of State of Foreign Affairs and War by John, Prince Regent, with the demanding task of reorganising the Portuguese Army, badly ravaged following the War of the Oranges, due to the imminent threat of the 