This function will generate and output various log files and support information to assist in troubleshooting computer issues. The exported data is added to an archive file which can be attached to support tickets or forwarded from service desk to senior support.
Sysmon (https://docs.microsoft.com/en-us/sysinternals/downloads/sysmon) is commonly used by many enterprise environments.
Test for the existence of a Sysmon event log and export if found.