The command for setting the Limit group does only create the License limit. The License Limit and the Resource Limit are not very different and the License limit can be used as resource limit.
I don’t think we have a programmatic way to create a Resource Limit.