Form the impératif passé with avoir or être in the impératif, followed by the past participle.
aie / ayons / ayez or sois / soyons / soyez + past participle
Aie fini à cinq heures means “Be finished by five”, and Soyez rentrés avant minuit means “Be back before midnight”. The dictionary of the Académie française lists Aie fini à cinq heures under impératif, which has a present and a past form.
Choose the auxiliary as in the passé composé: avoir with most verbs, être with verbs such as partir, rentrer and arriver. The command has no explicit subject, and the participle with être agrees with whoever is being addressed: Sois rentré to a man, Sois rentrée to a woman, Soyez rentrés to a group that includes at least one man.
What it expresses
The impératif passé gives an order, makes a request or offers advice that calls for an action to be complete by a future deadline. The deadline can be stated with expressions such as avant midi “before midday”, à cinq heures “by five” or avant lundi “before Monday”. The Office québécois de la langue française describes the form as less common and compares its timing to the futur antérieur, which places a completed action before a future point. Vous aurez fini avant midi says you will be finished before midday. Ayez fini avant midi tells you to be finished by then. The frequency label comes from the Quebec source. The Académie française and the Trésor de la langue française give no frequency label.
The same instruction can use the present imperative, as in Finis ton travail avant cinq heures “Finish your work before five”. The impératif passé draws attention to the work being complete by five.