A Queens man who was seen at the Jewish Center of the Hamptons on Oct. 8 carrying an expandable baton was referred for psychiatric evaluation Friday after an appearance in East Hampton Town Justice Court. Two officials of the center who approached the man and asked what he wanted were told that he “was here to pray to the gods.” After-school activities were taking place on the grounds, and the two asked him leave. The man, identified the next day as Daniel Glazer, 41, of Rego Park, reportedly slammed the baton against the ground, shutting it, and drove off. East Hampton Village police put out a lookout call for his car, a black two-door Dodge “with stuffed animals on the dashboard,” but could not find it. It was spotted in Montauk the next day by an East Hampton Town officer. The baton, which is over two feet long when expanded, was found in the car, and Mr. Glazer was charged with carrying a dangerous weapon. Village police later added a charge of trespassing. In Justice Court the next morning, Mr. Glazer began speaking in the direction of the police present, who looked away, stone-faced. “Police put drugs in your food and your water,” he said. “It messes up your head.” He caught the eyes of one officer. “If you lose your badge, you could just borrow mine, bro.” Brian Francese, his Legal Aid lawyer, told Justice Steven Tekulsky he was “not fully convinced Mr. Glazer is competent to proceed.” Justice Tekulsky asked the man if he knew where he was. “In East Hampton, my brother. In your court, my brother,” he said After a few more exchanges Justice Tekulsky told Mr. Glazer he would be held for two weeks of psychological evaluation. “I just hope somebody fed my fish,” Mr. Glazer answered, “because I love my fish.” The Jewish Center declined comment on the incident.