Man in court over alleged train, railway vandalism across Hunter