what made the mechanic conclude that its the transmission causing all these problems?
it sounds like you need a good engine checkup, the problems can be due to faults in ignition and fueling systems
That engine has a MAP sensor, when it fails it causes all sorts of problems
have the valve clearances been checked?