A "Rube Goldberg machine" is any exceedingly complex apparatus that performs a very simple task in a very indirect and convolute way.
See also: