Step 4: Execute the AQL command and retrieve the results.

ARTIFACTORY: How to Run AQL Commands in Windows Using PowerShell

AuthorFullName__c
Yonatan Hen
articleNumber
000005774
ft:sourceType
Salesforce
FirstPublishedDate
2023-06-08T15:48:02Z
lastModifiedDate
2023-06-08
VersionNumber
1
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