@grantjenkins - it is failing with your method:

{
"statusCode": 400,
"headers": {
"Cache-Control": "max-age=0, private",
"Vary": "Origin",
"X-NetworkStatistics": "0,525568,0,0,12,0,17968",
"X-SharePointHealthScore": "1",
"X-MS-SPConnector": "1",
"X-SP-SERVERSTATE": "ReadOnly=0",
"DATASERVICEVERSION": "3.0",
"SPClientServiceRequestDuration": "31",
"SPRequestDuration": "32",
"X-DataBoundary": "EU",
"X-1DSCollectorUrl": "https://eu-mobile.events.data.microsoft.com/OneCollector/1.0/",
"X-AriaCollectorURL": "https://eu-mobile.events.data.microsoft.com/Collector/3.0",
"SPRequestGuid": "eb526669-3561-48ca-a745-f975fd887027",
"request-id": "eb526669-3561-48ca-a745-f975fd887027",
"MS-CV": "aWZS62E1ykinRfl1/YhwJw.0",
"Strict-Transport-Security": "max-age=31536000",
"X-Frame-Options": "SAMEORIGIN",
"Content-Security-Policy": "frame-ancestors 'self' teams.microsoft.com *.teams.microsoft.com *.skype.com *.teams.microsoft.us local.teams.office.com *.powerapps.com *.yammer.com *.officeapps.live.com *.office.com *.microsoft365.com *.stream.azure-test.net *.microsoftstream.com *.dynamics.com *.microsoft.com onedrive.live.com *.onedrive.live.com securebroker.sharepointonline.com;",
"MicrosoftSharePointTeamServices": "16.0.0.24211",
"X-Content-Type-Options": "nosniff",
"X-MS-InvokeApp": "1; RequireReadOnly",
"P3P": "CP=\"ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI\"",
"X-AspNet-Version": "4.0.30319",
"X-Powered-By": "ASP.NET",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Fri, 27 Oct 2023 12:42:16 GMT",
"Content-Length": "246",
"Content-Type": "application/json",
"Expires": "Thu, 12 Oct 2023 12:42:16 GMT",
"Last-Modified": "Fri, 27 Oct 2023 12:42:16 GMT"
},
"body": {
"status": 400,
"message": "The expression \"How to Shrink SQL Database Log Files\" is not valid. Creating query failed.\r\nclientRequestId: eb526669-3561-48ca-a745-f975fd887027\r\nserviceRequestId: eb526669-3561-48ca-a745-f975fd887027"
}
}