Q:

How do I create a list of parameters in Powershell?

I have a PowerShell script that at the beginning of the program sets the limits for a value. Eg
$value1Min      = 1
$value1Max      = 99
$value1Interval = 100
$value1Post     = 125

Now I want to be able to handle any number of values​​, but I do not need copy code for each value. How do I create a list of parameters for each value? 
Eg (pseducode).
$info={{min      = 1
        max      = 99
        interval = 100
        post     = 125
       },
       {min      = 100
        max      = 1000
        interval = 10000
        post     = 548
       },
       {min      = 50
        max      = 100
        interval = 500
        post     = 452
       }
      }

I'm not so experienced in PowerShell

A:

You could create an array containing hashtables like this:
$info=@(
    @{
    "min"      = 1;
    "max"      = 99;
    "interval" = 100;
    "post"     = 125;
   },
   @{
    "min"      = 100;
    "max"      = 1000;
    "interval" = 10000;
    "post"     = 548;
   },
   @{
    "min"      = 50;
    "max"      = 100;
    "interval" = 500;
    "post"     = 452;
   }
  )

Example of how to get a value:
PS C:\Users\stackoverflow> $info[0].interval
100

You could also create a hashtable containing hashtables:
$info=@{
    "info1"=@{
    "min"      = 1;
    "max"      = 99;
    "interval" = 100;
    "post"     = 125;
   };
   "info2"=@{
    "min"      = 100;
    "max"      = 1000;
    "interval" = 10000;
    "post"     = 548;
   };
   "info3"=@{
    "min"      = 50;
    "max"      = 100;
    "interval" = 500;
    "post"     = 452;
   }
  }

Example of how to get a value:
PS C:\Users\stackoverflow> $info.info1.max
99

