The Seafarer Act Article 59

The master is entitled, during the voyage, to take emergency action in order to maintain security on the ship and to protect national legal interest.
中文原文 船員法第59條
船長在航行中,為維持船上治安及保障國家法益,得為緊急處分。

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