How do I get bats in the house to leave?
You don't say where you are, but in the UK, "getting bats to leave" would be a crime under the Wildlife and Countryside Act (1981) with a maximum sentence of six months prison.  Other countries are liable to have similar legislation.

Again, in the UK, I would contact the Bat Conservation Trust at https://www.bats.org.uk/.  They will try and help you learn to love your bats (they are wonderful creatures - and they eat mosquitoes), but if they fail at that, they will help you remove them legally.

If you are not in the UK, you will still find their website useful.