You got it, thanks. There were two problems...1) The property should be LogFile not LogFileName. The source I used had it listed wrong. 2) LogFile is a string so it needs to be in ' '. The line should read:
if ($aevents = $Wmi->ExecQuery("SELECT * FROM $Win32_Class WHERE LogF
+ile='Application' AND Eventcode=1000")) {