Because it is a Visual Basic script, it must be executed using the Windows Script Host ( wscript.exe or cscript.exe ). Running the command via the standard Command Prompt automatically invokes the script handler.
slmgr /dli