Administrative Litigation Act Article 237-12

When the administrative court reviews the cases concerning an objection against the detention sanction, a petition to continue the detention sanction or a petition to extend the detention period, the court shall examine the person detained; the National Immigration Agency shall also appear to present its statement.When the administrative court reviews the cases as provided in the preceding Paragraph, the court may seek opinion of the National Immigration Agency, Ministry of the Interior, to explore the possibility of other alternative measures in lieu of a detention sanction in order to consider the necessity of the detention sanction.
中文原文 行政訴訟法第237-12條
行政法院審理收容異議、續予收容及延長收容之聲請事件,應訊問受收容人;移民署並應到場陳述。
行政法院審理前項聲請事件時,得徵詢移民署為其他收容替代處分之可能,以供審酌收容之必要性。

English translation for reference only; the Chinese text prevails. Not legal advice.