A man has been charged following a court appearance after he allegedly attacked a Metrolink tram staff member.