In a Star Trek question and answer session with Roberto Orci, a small tidbit about the Transformers 2 script was revealed,
Orci and Kurtzman were released from ‘Michael Bay Jail’ (which turns out to be a luxury hotel on the Pacific Coast) on Friday, after finishing the first draft for Transformers 2
There is at least one Star Trek reference in Transformers 2