When the parties to any action pending in court desire to refer it to arbitration, each may choose one arbitrator and the court may appoint a third; and the award of such arbitrators, returned to and accepted by the court, shall be final, and judgment shall be rendered pursuant thereto and execution granted thereon with costs.