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, ...
Prior to Squad v7 the server information could be retrieved from a public server query endpoint that did not require any credentials to retrieve the data. Since Squad has been moved to Epic Online ...