How to Embed a datatable via a script?

I have developed an IP script to Add/Refresh 1 or more datatables from a database based on user input via a Property Control.

These new datatables(s) are automatically created as Linked To Source (Data Table Properties).

Can anybody help me with how to set the table(s) as Embedded, as the final step in the script?  I cannot figure out where this property can be set from the API


many thanks!

(1) Answer