Don't have Telegram yet? Try it now!
https://troubleshootingsql.com/2009/12/30/how-to-script-out-indexes-for-a-database-using-dmo/
How to script out indexes for a database using DMO