Disable Real time protection and all other protections in the Security Dashboard Settings.
Edit Group Policy to disable Windows Defender. Search "Group Policy" in the start menu and hit enter. Navigate to Computer configuration -> Windows Components -> Microsoft Defender Antivirus -> Double Click Turn off Microsoft Defender Antivirus and set to Enabled.