You can't change custody by filing a Petition for Contempt. You need to ask for a modification of the order. You will have the burden of proving that a change in custody is in the child's best interest, and repeated findings of contempt may help your case.
My response to this question is intended for informational purposes only and should not be interpreted as legal advice. Please be aware that in answering this question, I do not intend to create a privileged or attorney-client relationship. Further, I can make no guarantee as to the accuracy of said answer due to variables that may not be apparent from the phrasing of the question. Every case is unique and this should not be a substitute for seeking personal legal advice from a licensed attorney in your jurisdiction.