Reorganize Indexes T-SQL
I recommend either of the following: 


Michell Ufford's index defragmentation script 
Ola Hallengren's index and statistics maintenance script


Either of these can accomplish the task of maintaining indexes without requiring you to rebuild the scripts when indexes are added or removed.

One of the biggest problems I've seen with using the maintenance plan is the fact that it appears to iterate through every single index and place the index rebuild into a single script. Then the script is compiled and finally run. 

Now imagine that you have a 150 databases each with over 1000 indexes. This becomes a maintenance plan that takes 8 hours to run.