Currently get-processmitigation and set-processmitigation do not work in PowerShell 7. WindowsDefenderDSC should be updated to work with PowerShell 7