That is the UDF that we are using. We have included the Ping UDF into the script and just added in the commands to shut the computers based on the ping reply results.