Powershell Foreach Loop Variable Initialization In C