Set variable PacketLoss to first digit of percentage of packet loss occurring when pinging host specified by TestIP
PacketLoss=$(ping "$TestIP" -c 2 | grep -Eo "[0-9]+% packet loss" | grep -Eo "^[0-9]")