well, as I took a lookie at your script and I can say it's not here the problem.
this script does merely get wmi object and query some info.
and write to textfile.

I say, it either has nothing to do with the problem, or your wintosh is totally screwed up.
if latter, call it a bug if you want, but this has nothing to do with the normal behavior.
_________________________
!

download KiXnet