I dealt with this recently. A tarp was duct taped over the area where the bats entered, seal it on the top but not the bottom. The bats will find there way out at dusk when they go out to feed but will not be able to get back in.
After a day or two, when the bats were known to be out, the tarp was removed and the small gap was caulked up.