Bernard Shaw was an Irish playwright and not related to the Mughal Dynasty. He is famous for works like 'Pygmalion' and 'Saint Joan'. The other three - Bahadur Shah (likely Bahadur Shah Zafar, the last Mughal emperor), Akbar Shah (Akbar Shah II), and Muhammad Shah (Mughal emperor 1719-1748) - were all Mughal rulers.