Start-Process -NoNewWindow -Wait -PassThru "C:\Program Files\Unity\Hub\Editor\2020.3.39f1\Editor\Unity.exe" -ArgumentList "-quit -batchmode ...
The Cloud Game Development Toolkit should provide a module for provisioning a floating license server for Unity build machines. Here is the documentation.