You are probably looking for this:
Get-WmiObject Win32_NTLogEvent -ComputerName $compName -Credential $cred
gm
results of Get-WmiObject for Win32_NTLogEvent (yes, it can take a while to produce):
You can use for filtering (i.e. add -filter "(TimeWritten>'$BeginDate')"
to gwmi command), don't forget to assign $BeginDate
variable prior to that. See these: