AM Journey IDM Object Lookup

Hello

In my journey I need to look up a custom managed object in IDM based on a reference value of the user. Is there an equivalent openidm.query or another mechanism to query specific objects in IDM from within the AM journey (javascript)?

Thanks
Nick

Next generation scripts in ID Cloud allow the openidm binding Next-generation scripts :: ForgeRock Identity Cloud Docs