Please tell me how, good sir. Not replace, not turn off temporarily until the next day or the next restart when it turns on again automatically. Tell me, how do I turn off Windows Defender real time protection in a way that I can turn it on when I need it and turn it off when I don't.
As far as I know, It's not possible without 3rd party tools AND in a way that will persist (even after Windows updates).
Responding to the call to flag the post, I gave examples of impact, and why it's newsworthy and the post shouldn't be flagged just because Microsoft stopped the behavior after the damage had been done.
That's pre-established as major industry and business news, so it's an additional reason not to flag the post.
turning it off is temporary
if you disable the service it gets re-enabled, if you delete the service it comes back, if you delete the executable it comes back
what does seem to work is removing all permissions to it in safe mode