I did some testing and once I figured out what was happening, it worked great.
Other than a few minor changes it worked as given. Basically if the computer name exists, the code just does a RETURN to the previous script. If the name doesn't exist, the remainder of this script is run.

I am so happy that this works. I learned a little too which I guess isn't a bad thing.

I undertand now too that using GOTO is not a good thing always.

Thank You all for your help. I am working on the other code to see if I can get that to work they way I want also (just for my knowledge).

 Code:
 
$sTextToFind=@WKSTA
$oFSO=CreateObject("Scripting.FileSystemObject")
$oFile=$oFSO.OpenTextFile($logfile, 1, -1)
$sFileData=@CRLF+$oFile.ReadAll
 If InSTR($sFileData,@CRLF+$sTextToFind+",")
  "Yes, '"+$sTextToFind+"' is in the file"+@CRLF
   Close($logfile)
   Return
Else
  "No, '"+$sTextToFind+"' is not in the file"+@CRLF