It is unclear to me why you are prohibited from having contact with children. I assume that you have a pending criminal charge and it is a condition of your bail. If that in fact is the case, there is little that you can do. It is a common bail condition for child abuse offenses. You will have to live with it until the case is resolved.
If the prohibition stems from a condition of probation, again it is highly unlikely that any judge will modify the condition.
If you are neither charged with nor convicted of a criminal offense, I am at a loss why there would be a prohibition.