powershell foreach add results to array