Nothing contained in this article shall be construed as abolishing the right of any landlord to recover possession of any real property from a tenant by action of ejectment, or from instituting any amicable action of ejectment to recover possession of any real property by confessing judgment in accordance with the terms of any written contract or agreement.
68 P.S. § 250.511