Skip to content

Latest commit

 

History

History

ForEach-Object

ForEach-Object

When ForEach-Object is used in a pipeline with other commands and its scriptblock causes an error then the error info tends to be not clear.

ForEach-Object can be replaced with .{process{...}}. The latter works faster and does not obfuscate information of potential errors.

Scripts

See also