Looks like you have some HTML header information in your KiX files. Example, ping.kix should look like this...

Code:
Function Ping($ws)

$timeout = 5000 ;in milliseconds (up to 20000)
$machine = $ws
SHELL '%Comspec% /e:1024 /C ping ' + $machine + ' -n 1 -w ' + $timeout + ' | find /C "TTL=" > nul'
IF @error = 0
$Ping=1
ELSE
$Ping=0
ENDIF
EndFunction