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, ...
{sql-server} is the name of the target SQL Server {target-database} is where we'll install the sp_HumanEvents procedures. SET @msg = N'The specified target database, $(TargetDB), does not exist.