Newman is throwing error "pm.request is invalid"

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.

In Newman scripts , i am using pm.request.
While running i am facing the error “pm.request” is invalid.

Hi @Lalith_Vignesh,

If you are looking to send a request to the browser, the command would be pm.sendRequest() and not pm.request, an example of executing this would be seen in the link below along with many other test script options:
https://learning.getpostman.com/docs/postman/scripts/postman_sandbox_api_reference

Have a look at the link below to get an idea about running collections using Newman.
https://learning.getpostman.com/docs/postman/collection_runs/command_line_integration_with_newman/

Thanks.I ran the script with pm.sendRequest().Now it is working fine.