Section 5. The courts and the justices thereof, respectively, may in any county transact any business of such courts and direct the entry of any order, judgment or decree in an action, suit or proceeding pending in the same court in another county.