I'm new to Powershell so don't know a huge amount.
I have a menu and I have 2 options ("Add IP" and "List IP's")
The "Add IP" code is:
$UIP = Read-Host "Enter IP to whitelist" $whitelist += $UIP
The "List IP" code is:
Write-Host "==== $Title Whitelist IPs ====" Write-Host Write-Host $whitelist
The only problem is that when I list the array it lists everything on the same line like this:
when I would like to to display like this: