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"}} ] } ) '@