We want to execute two PowerShell functions in parallel. We found that Start-Job
is looking good; however, we don't know all the parameters the function needs, and therefore we cannot pass them all via the -ArgumentList
parameter.
How to call Start-Job
(or a viable alternative?) in such a way that the inner function has the exact same "variable environment" as the caller?
(edit: also all functions/modules should be present as well)