A San Francisco Superior Court judge will rule Friday on whether a man who allegedly stripped naked and harassed people while doing acrobatic moves at a BART station can be released to obtain mental health services in another county.

Four men accused of a frightening shooting during rush hour last Friday near the Powell Street BART station in San Francisco made their initial appearance in court Wednesday and were ordered held on $2 million bail.