I can compile all the LaTeX files in a directory sequentially as follows:
Get-ChildItem -include *.tex -name | ForEach-Object {
lualatex --interaction=nonstopmode --output-directory=$pwd $_ } }
I would like to compile in parallel, two files at a time. I'm very new to Windows PowerShell, unfortunately, and I can't seem to find a good way to do this. Any ideas?