Okay I removed the function out of the mix and changed the Select to

 Code:
Select
	Case $Array[3] = "Logon"
	WriteLine($FH2,$Array[0]+" "+$Array[1]+" Successful network Logon: User Name "+$Array[2]+@CRLF+"     "+"Workstation: "+$Array[12]+@CRLF)	
	Case $Array[4] = "Logoff"
	WriteLine($FH2,$Array[0]+" "+$Array[1]+" User Logoff"+@CRLF)
	Case 1
	$Type = "Ignore"


Still have the same results. Moved the file location to a different location (%temp%) still no effect.

Any ideas what is going on?
_________________________
Today is the tomorrow you worried about yesterday.