Deductions & credits

The IRS uses physical custody of greater than 183 nights in the home for the child to be claimed as a dependent.

You need to speak to your attorney if she is not abiding by the court order, this is a legal question that cannot be handled in this forum.