If any such corporation shall be unable to agree with the owner for the purchase of any real estate required for the purposes of its incorporation, or the transaction of its business, or for its depots, station buildings, machine and repair shops, or for right of way or any other lawful purpose connected with or necessary to the building, operating or running of said road, such corporation may acquire such title in the manner that may be now or hereafter provided for by any law of eminent domain.
610 ILCS 5/17