A burglar will usually leave without being threatened, as did the original perpetrator. A home invader may well have a gun. Don't bring a bat to a gunfight has usually been sound advice.
Additionally, if you actually try to use the bat, you face the chance that an unarmed person overpowers you and now is no longer unarmed.
Finally should you be charged with a crime you may be faced with a considerable bill for a defense lawyer. None of this is to say that you shouldn't defend yourself, but that you should consider all the implications.