hi @daniel.goddard
I’d recommend just giving node.js a go, it’s surprising easy to install and to get going with. Just go to nodejs.org and install it. Do lots of googling of anything you’d like to try and do and just try a few code snippets. Get used to using npm to install new modules to try out (but do it from within your project folder) . If you like go through slides 9 to 11 of this workshop I ran, that will help you install and set up your first project.
To be able to access the file system, execute the following from within your project folder
npm install file-system --save
In postman create an environment with a variable ‘list’ with the value
[“value1”,“value2”,“value3”,“value4”,“value_etc”]
now export that to a file inside your node.js project folder
Then the following code should remove the first element from list (after you’ve used it in your collection)
const fs = require("fs"); // the filesystem module
const fileName = './env with list.postman_environment.json' // your env file from postman file saved in same directory as this script
var env = require(fileName)
console.log("environment file: ",env)
var listJSON = env.values.find(value => value.key === 'list')
try{
var list = listJSON && listJSON.value && JSON.parse(listJSON.value)
}catch(e){} // ignore any json parsing errors
if(list){
console.log("Entire list: ",list)
console.log("The first item of the list",list.shift())
// Note: shift returns the first item, as well as removing from the list
console.log("List - with first item removed",list)
// replace the env variable with updated list
env.values.find(value => value.key === 'list').value = JSON.stringify(list)
// write the list back to the file
fs.writeFile(fileName, JSON.stringify(env), (err) => {
if (err) {
console.error(err);
return;
};
console.log("Env File has been updated");
});
}
You can run this in a powershell script with
node path/scriptName.js
assuming you saved the code above into path/scriptName.js
or to debug it
node --inspect-brk path/scriptName.js
and then open chrome, go to Developer Tools (F12), and then click on the cube icon for Open dedicated DevTools for Node.js.

this will launch the chrome javascript debugger
From experience beginners would probably get this far within a couple of hours, but its possible you may hit some kind of obstacle, but you won’t be the first, so google it for a fix.
Goodluck @daniel.goddard, I was where you are a year ago, it’s easier than you might think.