Sorry, should have been more explicit. It sounds like you will need to creat a DTS package that will manage the table, index, etc moves and then schedule that package as a job (off the right click) with no repeat schedule.
Once you have the job, you can use the sp_start_job system stored procedure to execute the job that you created whenever you want from anywhere you want. If you look up sp_start_job in BOL it will give the parameters you have to provide info for.
Hope this helps and let me know if you need more information.
“He is no fool who gives what he cannot keep to gain that which he cannot lose” - Jim Elliot