When necessary to obtain child support for a child under section 576D-3, the agency shall take any legal or administrative action to establish the paternity of the child.  The agency shall undertake the action on behalf of the State, child, custodial parent of the child, or any other person for whom the agency has a duty to obtain or enforce a child support order.