From my testing, you can run below command to look for custom tasks. This command just greps three types of common, built-in Author names.
Beware as you exclude a lot of tasks that way that are, but also might look build-in. I don’t guarantee that you won’t exclude any vulnerable one’s using this code!
Get-ScheduledTask | Where-Object { $_.Author -and $_.Author -notmatch "Microsoft" -and $_.Author -notmatch "^\$\(@" } | Format-List *
After you find some tasks this way, you can use the below command to get more data about them as Get-ScheduledTask lacks in detail. Just take the task’s URI and use it in the command below.
schtasks /query /tn "<URI>" /fo LIST /v