Installing Unity Editor/Hub from command line on Windows

We have a requirement to install Unity Hub and Editor from the command line on a Windows machine.

  1. How do we do this without previously downloading the Hub installer/Editor installer?

  2. After installation, can we also activate a license in the Unity Hub from the command line?

https://docs.unity3d.com/Manual/InstallingUnity.html
https://docs.unity3d.com/Manual/OnlineActivationGuide.html#license-activation-cli