How to Use TSQL to Monitor Index Fragmentation

The script I use by default to monitor fragmentation excludes a bunch of indexes I probably don’t care about.