Whenever I review PowerShell scripts, I usually consider loops (especially nested ones) to be a code smell. It usually indicates to me that script is unnecessarily procedural and could benefit from being rewritten in a more functional manner. Take this simple code snippet as an example. It searches sql files for a particular string (the [...]