During which war was Brazil last invaded ?
Pedro I , along with a significant percentage of the legislature , argued for an independent judiciary , a popularly elected legislature and a government which would be led by the emperor who held broad executive powers and prerogatives .