This Ends Now -
I am so sorry this is going on. I hope you have an attorney - especially if you could be facing jail time. If you don't show up - they will come arrest you and the judge won't take kindly to that at all. So, somehow you have to find a way to face this. Do you have someone supportive that came come with you? If not, I would contact the courthouse and see if there are any advocates available that assist people with mental illness.
I'm not sure what your charges are - but are you seeing a therapist currently? If so, would he or she will be willing to either attend with you or at a minimum write a statement to the court indicating that you have PTSD? I'm not saying this will help you get off - but it may help the judge understand if you are nervous about being there etc.
I'm sorry you are in such a tough position - but unfortunately, you are going to have to deal with this - I'm hopeful that everything will turn out better than you are expecting.