Microsoft removes the ability to disable Defender via the registery
docs.microsoft.com
docs.microsoft.com
Remember, AV-Software is mostly BS.
It's not Microsoft's machine, and they oughtn't try to overrule what people try to do with it.
(And yes, personally I use Linux. But I don't think that ought to be the bar for having your devices do what you tell them to)