Hello EnterpriseArchitect,
You can use the bellow code to query your log analytics, first you need to login and setup the AzContext on powershell:
Connect-AzAccount
Set-AzContext -Subscription "<Your-Subscription>"
$la_name = "<Your-LogAnalytics-name>"
$la_rg = "<Loganalytics-RG>"
$la_id = (Get-AzOperationalInsightsWorkspace -Name $la_name -ResourceGroupName $la_rg).CustomerID
## Take in consideration you have permission as reader over workspace
$query = "AzureMetrics
| where TimeGenerated >= ago(1d)"
$outQuery.Results | Out-GridView
Let me know if this is helpful.
Luis