Transact-SQL does not allow constructions like those.
The closest you can come would be to build the entire query as a string, then execute the string using exec() or sp_execute_sql().
This technique is called dynamic sql, and has pros and cons, including security and performance considerations, and practical ones such as executing in a new context.
While the technique is useful for administrative purposes like yours, in the more general sense, using dynamic sql for substituting object names, etc. into queries is often considered *not* a good practice, especially for application code.
For a comprehensive article (why and why not to, besides the how to) see: