Actually, I take that back.

I only get that message when I call the function:

$ie = WMIProcessList('iexplore.exe')
MESSAGEBOX ($ie,"Notice")

Any ideas?

I'm calling your script, Call "WMIProcessList.KIX" in my script. That seems to run fine. But when I run the two lines above I get the line 132 in WMIProcessList.kix expected ')'