How to Avoid Duplicate DSC Script Resource with $Using Variables

How to fix duplicate keys for DSC Script resources in a loop with embedded $Using variables.