SENDMESSAGE function does not work on Win95... why ?

I am trying to write a short script that checks to see if a number of given computernames can be reached or not. Does anyone have any good ideas ?

Thanks in advance