A few things to keep in mind when you're working with PSDscRunAsCredentials
PowerShell snippet to disable all triggers on a database.
Spoiler alert: I haven't, but we look at a few of the restrictions that have been removed.
Using Group-Object to aggregate data with PowerShell.
Some details on how to troubleshoot DSC errors.