You need curl (available in Windows 10 Home, version 1803+). Replace YOUR_ACCESS_TOKEN with your actual token.
While popular, using such scripts from unofficial links (like bitly) carries significant risks: bitly windowstxt windows 10 home
For a secure and permanent activation, Microsoft recommends: how to activate Windows - Microsoft Q&A You need curl (available in Windows 10 Home, version 1803+)