Some courts have ruled recently that homeowners are outtaluck in these cases. Private property isn’t necessarily what you think.
Yhere is no real private property in land in this country. When the government can tell you what you can build or whether you can cut a tree or dig a pond or a government unit can take the property in some sort of civil forfeiture scam or eminent domain you do not own the property. You have some revocable privileges to the property and have to pay fees (taxes) for those privileges on it.
I don’t recall ever reading about a case like that but I have read where a court has held that the homeowner has to go through the eviction process in order to get the invader out.