With all the necessary setup in place, you can now execute the AQL command using the Invoke-RestMethod cmdlet. This will send a POST request to the Artifactory platform, passing the authentication headers and the AQL query. The results will be stored in the $result variable.
$result = Invoke-RestMethod -Uri $platformUrl -Method POST -Headers $headers -Body $data