You can use this query directly to get all the names of jobs that include specific text (for example "MyText"
SELECT j.job_id, j.[name], s.command
FROM sysjobsteps s
right join dbo.sysjobs j on s.job_id = j.job_id
WHERE command LIKE '%MyText%'
** Execute query on multiple SQL Servers can be done using SSMS by creating a local server group or a Central Management Server and one or more server groups
Open SQL Server Management Studio -> View -> click Registered Servers
In the "registered Servers" windows you can create groups and add servers.
To execute query on a group simply right-click a server group, point to Connect, and then click New Query
** Execute query on multiple Azure SQL Databases can be done using Azure Elastic Job (you can search a recording of my lecture about Elastic Pool and Elastic Job).