An application for a writ of habeas corpus in behalf of a prisoner entitled to move for relief under sections 7131-7135 of this title, shall not be entertained if it appears that the applicant has failed to apply for relief under this subchapter and 12 V.S.A. §§ 3953 and 3957 or that the court has denied him or her relief, unless it also appears that the remedy by motion is inadequate or ineffective to test the legality of his or her detention.
13 V.S.A. § 7136