Step 3: Define the AQL query.

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
Next, you need to define your AQL query within the PowerShell script. Replace the value under the single quote (‘items.find(...)’) with your specific query. For example, let's consider a query that finds items created or modified within the last day:
$data = @'
items.find(
    {
        "$or": [
            {"created": {"$last": "1d"}},
            {"modified": {"$last": "1d"}}
        ]
    }
)
'@