In Windows Powershell, I want to make a script that runs a bunch of commands in succession.
Like so:
mongo a.js > aout.txt
mongo b.js > bout.txt
...
I'm using PowerShell to get access to the linux like >
command.
But I can't figure out how to easily write this script. I assume it's trivial.
I tried writing a batch script but that doesn't work, due to >
isn't supported.
How would you do it?