$StartTime = (Get-Date).AddMinutes(-) $ID= Get-WinEvent -FilterHashtable @{ LogName='Application' ProviderName='Qlik Enterprise Manager' Id=$ID StartTime=$StartTime } | fl * | Out-File -FilePath events.log -Append