Assistance with Retrieving Assignment ID on TeamViewer Hosts

I have created a custom TeamViewer module, along with associated policies and assignments, through the TeamViewer portal.

I used the TeamViewer.exe assignment --id <Assignment ID> command to assign the TeamViewer host to the created assignments. However, since we have two different assignments within our organization, I would like to run a script to find the Assignment ID on each TeamViewer host.

I have been unable to locate a command or method to retrieve the Assignment ID from the host level. Could you please advise on how to achieve this?

Thank you for your support.