This happened to an old girlfriend and me many years ago when I was staying the night at her place. I woke up around 1am and thought I heard a flapping sound in the bedroom. I told girlfriend, who sleepily said “it’s just something outside the window— go back to sleep”.
Which I did, and then woke up again around 3am, this time certain I heard flapping within the bedroom from one side to the next. I turned on the light and, sure enough, a bat is perched on the floor in one corner of the room.
I grab a wastebasket and quickly cover it, causing it to freak out, flapping around and squealing loudly. I was pretty freaked out, too!
I slide some cardboard under the waste basket and take the bat to the door to a little second floor balcony, happy I was able to contain the situation so quickly. Then…I see another bat perched on the frame above the door!
I manage to dislodge the perched one with a small net and a spatula. Don’t think I got back to sleep after that.