I use code similar to this to dynamically create variables:
New-Variable -Name "var$i" -Value $x
Get-Variable -Name "var$i" -ValueOnly
But I am not sure how to proceed creating dynamically named DataTables.
For example, I have a CSV with sets of domains on them. For each domain, I want to create a dynamically named DataTable to store the data for that specific domain. After doing a bit of processing I'll need to merge all the data tables into one procedurally. Is there a way I can dynamically create these tables?