Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 865 Bytes

File metadata and controls

18 lines (12 loc) · 865 Bytes

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