SyntaxFix
Write A Post
Hire A Developer
Questions
You can create the headers on the fly (no need to specify delimiter when the delimiter is a comma):
Import-CSV $filepath -Header IP1,IP2,IP3,IP4 | Foreach-Object{ Write-Host $_.IP1 Write-Host $_.IP2 ... }