Use the Pipeline, not an Array

    Poor practice. You see, this forces PowerShell to wait while this entire command completes. Any subsequent commands in the pipeline will sit their twiddling their thumbs. A better approach? Use the pipeline. Its whole purpose is to accumulate output for you - there’s no need to accumulate it yourself in an array.

    Now, subsequent commands will receive output as its being created, letting several commands run more or less simultaneously in the pipeline.