Using PowerShell for vCenter Task Collection

Recently I needed to collect vCenter Tasks during a script/test that I was running. I ended up using PowerShell to create a vCenter Task Collector, filtered the results and used Export-Excel to export those results to an excel.