Basically, we would just be replicating this portion of the GitHub action into a nodejs script.
This would allow us to share code for both local setup and for GH actions.
tar and curl should be included with Windows 10 and 11 past 2019 or so, plus, MacOS and most Linux distributions should also have it installed by default.