Postman script is not working newman

Archived topic — this may be out of date.
Newman has been replaced by the Postman CLI, Postman’s official, signed command-line tool. It runs collections as Newman did, and also lints API specs, runs mocks and monitors, and syncs local files with Postman from your terminal, CI/CD pipeline or coding agent.
Working with an AI coding agent? The Postman plugin lets agents in Claude Code, Cursor, Codex and others design, mock, test and ship APIs with Postman.
For current help, see the Postman docs, try the free Postman tools (no account needed), or join us on Discord.

I am using this scipt to get the location path of folders of a collection.

Able to get the path details with this script in postman but not working in newman

pm.execution.location

image

As mentioned in the other thread.

Not sure if that feature is available in Newman yet.

It’s fairly new.

I suspect someone from Postman will be able to confirm.

It was added in 6.1.0.

@michaelderekjones Thanks for your reply…
Tried after newman version updation.
It is working fine in newman version(6.1.2)

@danny-dainton Thank for you reply.Tried after version updation.
Working fine with newman version(6.1.2)