Who are these scripts for? You need to troubleshoot performance problems with SQL Server, and you need to do it now. You don't have time to track down a bunch of DMVs, figure out Extended Events, ...
Interactively build and debug a set of T-SQL statements in SQL Server Management Studio, and then save the contents of the Query window as a script file. Create a text file that contains T-SQL ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results