The court may, in its discretion, grant an extension or extensions of time within which to comply with any order entered by the court pursuant to this article, which extension shall be for a definite term and shall be in writing.