Mac, Tablet, Mobile, Microsoft hasn’t let KMS Server do it. KMS Activation method is approved by Microsoft to use to activate PC and Laptop only. If you want to activate Microsoft Project 2019 and Microsoft Visio 2019 you can read these articles:
So you need to disable Windows Defender or you can try method 2 below. Somebody sent an email to me to describe their problem: “When I opened it as admin, the command center just popped up then disappear”. Update 09-10-2019: Now Microsoft doesn’t allow to use batch file so Windows Defender detects my scripts as “HackTool:BAT/AutoKMS”.