wmic process where "name='MsMpEng.exe'" delete
I have fixed it by deleting the WinDefend key from the Windows 10 registry.
WinDefend