If the bird is in a room that does not have a clear exit, then hold up a large sheet with both arms and attempt to herd the bird into a better room of the house. Do not touch the bird with a broom or any other long-handled object.
Birds are biologically designed to be sensitive to pressure; they can feel very subtle changes in air pressure, so being engulfed by a large towel or sheet can be incredibly painful to them. Their bones are also very fragile so even a gentle human touch could cause significant injury to the bird Do not use a broom or other object to hit the bird; this will only injure the bird and further prevent it from flying back outside.
If you have a woodpecker who continues to bore into the side of your house, hang a shiny object – like an old CD or DVD – near the site; this will deter the bird from remaining in that spot. Wind chimes are also helpful in discouraging woodpeckers. [6] X Research source