ScriptCop Rule to Find Return Statement Inside ForEach Cmdlet Loops
Download: Return Statement Inside ForEach Cmdlet Rule

This ScriptCop rule finds return statements inside foreach cmdlet loops - these return statements won’t work. This is a bug in PowerShell.

For more information see: http://danspowershellstuff.blogspot.com/2011/12/scriptcop-return-in-foreach-cmdlet.html