Motorized rail transfer cart