A court room is really no place for a child, I had to go to court once and it was not pretty. There were people with foul language, it is boring and it can drag on for ages.
I think leaving him with Grandparents or someone he knows will be your best option. Let him know that you will be coming back later in the day to pick him up.
Wishing you the best of luck
Published 19th June 2019