Move current device to another group

I am looking to automating a device move using the following PoSH script.

Set-TeamViewerDevice -DeviceId '%COMPUTERNAME%' -GroupId 'g1234'

Based on the following article,

TeamViewerPS/ at main · teamviewer/TeamViewerPS · GitHub

If anyone could help with either confirming that the above will work or not. If not, please advise.

Thank you,