PS C:\prog\PowerShell> foreach ($i in 1..10) { [void] $foreach.MoveNext(); $i + $foreach.current } 3 7 11 15 19 PS C:\prog\PowerShell>