Looks like you're trying to create a log alert rule. That button "New alert rule" in your image will get you to the pane to configure the alert.
Here's a possible guide to help you: https://learn.microsoft.com/en-us/azure/azure-monitor/alerts/tutorial-log-alert
The query language is Kusto Query Language (KQL), if you're looking to do something with PowerShell it wouldn't be in this query it would be a management-based activity.