When running processes in a PowerShell pipeline, the next process will only start after the previous one exits. Here's a simple command to demonstate:
python -c "from time import *; print(time()); sleep(3)" | python -c "from time import *; print(input()); print(time())"
Which will print something like:
1599497759.5275168
1599497762.5317411
(note that the times are 3 seconds apart).
Is there any way to make the processes run in parallel? Looking for a solution that works on either Windows PowerShell or PowerShell Core on Windows.
I found this question, but it only deals with cmdlets, not normal executables.