Set group via CLI or python

Is there a way to set a clients group via CLI or Python on Windows?

I am trying .\UrBackupClient_cmd.exe set-settings -v “Windows 10 Images” -k “groupname”

but this does not work.

I also tried in Python:

server.change_client_setting(sys.argv[1], “groupname”, “Windows 10 Images” )

I tried more or less the same thing with no luck. Being able to set the client group through the API would be excellent.