I don’t know if this is common knowledge but I only just discovered it after multiple years using ForEach-Object; it supports Begin and End script blocks as parameters.
Some details and examples below;
Continue reading “MindBlown: ForEach-Object has Begin and End parameters”