# Does newman call some kind of system exit?

**URL:** <https://community.postman.com/t/does-newman-call-some-kind-of-system-exit/13210>\
**Category:** Help Hub\
**Tags:** newman-project\
**Created:** [June 8, 2020, 12:38pm UTC](https://community.postman.com/t/does-newman-call-some-kind-of-system-exit/13210 "2020-06-08T12:38:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gcr45](https://avatars.discourse-cdn.com/v4/letter/g/b9e5f3/32.png) [@gcr45](https://community.postman.com/u/gcr45)\
**Post date:** [June 8, 2020, 12:38pm UTC](https://community.postman.com/t/does-newman-call-some-kind-of-system-exit/13210/1 "2020-06-08T12:38:42Z")

</div>

> **Archived topic — this may be out of date.**  
> Newman has been replaced by the **[Postman CLI](https://learning.postman.com/docs/postman-cli/postman-cli-overview/)**, 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](https://github.com/postmanlabs/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](https://learning.postman.com/docs/), try the free [Postman tools](https://www.postman.com/tools) (no account needed), or join us on [Discord](https://discord.gg/58aNNsRBGR).

Does newman call some kind of system exit? I am attempting to call it from a node script. I want to call newman from a loop. This is not the same as calling newman iteratively. I want to make separate calls each time.

My loop iterates only once then the whole process terminates–no errors, a happy end.

My node script looks like this:

for (i = 0; i \< argv.calls; i++) { newmanRun(); // This loop executes only once, successfully, then quits. }

// This is how we call newman.  
const newmanRun = () =\> {

```
return newman.run({ 
    collection: <a_valid_postman_export>,
    reporters: "cli",
    insecure: true,
    iterationCount: argv.iterations
}, function (err) {
    if (err) { throw err; 
    console.log("Interative run complete!");
})

```

}

Thanks in advance.
