System Function for pinging an IP through script

If it's just strictly pinging you can check this out