Newman Run only specific iteration

I have a number of iterations ( say 10 ) … is it possible to run only iteration number 5 if need be?
if there is no direct way is there a workaround ?

You can set an environment variable for your maxIterationCount.

You could add a no-op request at the beginning of your collection (like hitting the postman delay endpoint) and in the tests section add the following code:

if( >= pm.environment.get('maxIterationCount'){
} is a 0 based counter of how many times the collection has been iterated.

When you’re running newman, all you’d have to do is set an environment variable override to the max number of iterations:

newman run (standard arguments) --env-var "maxIterationCount=5"