Should I write to invite a professor to be my PhD thesis examiner?
The way in which doctoral examiners are selected will differ between countries, between universities within countries, and within schools. Ask your supervisor for advice on what you should do here and follow their instructions.