It takes two parameters:
- Server - the URL of the TFS instance, e. g. http://tfs.acme.com:8080/tfs/
- File - the filename of the compiled .VSIX file
The script looks inside the VSIX to determine the publisher, the extension ID, and the version.
The script was meant for on-prem TFS. Microsoft's TFX command line tool can do the same for VSTS, but it doesn't support NTLM auth (because Node.js' HTTP client doesn't). Mine is in Powershell, where NTLM support comes out of the box.