You can get to the Bad Pyrmont railway station from the Hannover airport, as well as from the Hannover Central railway station by the intercity train in the direction of Paderborn.