How to set editor path by command line?

I have created a silent installation by Unity Download Assistant. Installation path is C:\Program Files\Unity .
and
I have installed Unity Hub beta silently by running a command UnityHubSetupBeta.exe /S.

I need to set the path C:\Program Files\Unity into Unity Hub so that the editor and additional installs are found and Unity Hub can update installations. How can I do this by using a batch file?

You can run this command: “Unity Hub.exe” – --headless help
It’s a help file with all the commands in it.