At any time after the appointment of a Secretary is terminated under section 56 or 59, the Prime Minister, on behalf of the Commonwealth, may engage the former Secretary to perform specified duties (otherwise than as an APS employee), on terms and conditions determined by the Prime Minister.