PowerShell Foreach vs ForEach-Object
There are two variants of ‘for each’ in PowerShell: Foreach statement: iterates over a collection of objects ForEach-Object: obtains its entries from the pipeline At first they both seemed to do the job, but there are some differences. Let’s do … Read More »