Unity is notorious for breaking changes between versions. If you update the Editor via the Hub, you risk breaking older projects that rely on specific quirks of the previous version. With portable installs, you can have Unity 2021.3 and Unity 2022.3 sitting in separate folders on your desktop, completely independent of one another.
:: Get the drive letter of where this script is running set "ROOT=%~dp0" set "ROOT=%ROOT:~0,-1%" unity portable install