540:12 Possessory Action.
The owner, lessor, or purchaser at a mortgage foreclosure sale of any tenement or real estate may recover possession thereof from a lessee, occupant, mortgagor, or other person in possession, holding it without right, after notice in writing to quit the same as herein prescribed.