I have a fairly simple request but it doesn’t seem to work
Essentially I have an xml file which has n elements.
I iterate over the elements using Foreach-Object
As I am processing each element I use Start-Process to kick off a task.
I check for the last item in the collection and when I hit it, the same Start-Process as the others, invokes but this time with a -Wait.
Once all have been completed, I would expect the -End block to run but it never does
I can post code if you wish but it is a pretty straight forward thing, i think