A 40-year-old has appeared in court after he armed himself with a knife and threatened a group of youngsters playing a game.