Courts of equity may enforce the performance of written agreements between husband and wife made and entered into in contemplation of either separation or divorce and decrees or orders for alimony and maintenance by sequestration of the property of either party, or that of his or her sureties, or by such other lawful ways and means, including equitable garnishments or contempt proceedings, as are in conformity with rules and practices of courts of equity.