At that time of night, call 911. Stay in the house. If he doesn’t enter the house, let the cops find him.
If he enters the house, kill him.
A good strategy. My dogs would get him if he got into my back yard. Four shepherd dogs of several varieties, average weight about 80 lbs.
Unless one has children,it is the smart thing to do to stay in your bedroom.
Let the bad guy come to you under conditions you control.
Then zap him.
Encountering the bad guy while walking down a hallway or past a bedroom door is even more dangerous than encountering him outside because your encounter will be at very close range, much closer than outside.
I forgot to add that going outside puts you in legal jeopardy in some states. The courts will take the position that as long as the bad guy is outside he is not a lethal danger to you and therefore you can not shoot him. That varies according to the law in your state and also according to the prosecutor in charge of the case.
In this state, cases have gone both ways even though this state is clear on the point that you can not shoot a person who is not an immediate deadly threat.