Run the bat file as administrator to activate your copy of windows.
Uses known KMS keys found on github for different versions of windows 10 (Home, Professional, Enterprise, Education), then authenticates with a list of KMS servers.
To setup up your own KMS server on linux, check out this video: https://www.youtube.com/watch?v=71ACeX0gomk