#Write the log into output file
Start-Transcript -Path .Desktoplog.txt
#ping the IPs From IPAddresses.txt
(Get-Content .DesktopIPAddresses.txt) | ForEach {Write-Host $_, "-", ([System.Net.NetworkInformation.Ping]::new().Send($_)).Status}
Stop-Transcript