something like this...
Code:

Shell '%comspec% /c ping ' + $name + ' -n 1 | find "TTL" > nul'
If not @ERROR
;run you commands
;
EndIf