‘Demanding PM’s resignation tantamount to court contempt’