Powershell parse error
<p>I am trying to parse an ini file using the code below, 
but I get the following error:</p>

<blockquote>
  <p>new-variable : A variable with name 'FromConfig' already exists.
  +         new-variable -name $Variable_NME -value $VariableValue_STR
  +         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : ResourceExists: (TB1_LKC_PATH:String) [New-Variable], SessionStateException
      + FullyQualifiedErrorId : VariableAlreadyExists,Microsoft.PowerShell.Commands.NewVariableCommand</p>
</blockquote>

<pre><code>$IniFile_NME="$PSScriptRoot\SanityTests\Config\ConfigToParse.ini"

dir $IniFile_NME

########################################
#
# Parse the file
#
########################################


$InputFile = [System.IO.File]::OpenText("$IniFile_NME")

while($InputRecord = $InputFile.ReadLine())
    {
        # Display the current record

        write-host "`$InputRecord=$InputRecord"
        write-host ""

        # Determine the position of the sign (:)

        $Pos = $InputRecord.IndexOf(':')
        write-host "`$Pos=$Pos"

        # Determine the length of the record

        $Len = $InputRecord.Length
        write-host "`$Len=$Len"

        # Parse the record

        $Variable_NME = $InputRecord.Substring(1, $Pos -1)
        $VariableValue_STR = $InputRecord.Substring($Pos + 1, $Len -$Pos -1)

        write-host "`$Variable_NME=$Variable_NME"
        write-host "`$VariableValue_STR=$VariableValue_STR"

        # Create a new variable based on the parsed information

        new-variable -name $Variable_NME -value $VariableValue_STR
        get-variable -name $Variable_NME
    }
$InputFile.Close()
</code></pre>

<p>thank you :)</p>

<p>adding the config file: </p>

<p>PROJECT_TO_VALIDATE: J</p>

<p>FW_TESTED:      LKC</p>

<p>FW_ALTERNATIVE: BKC</p>

<p>MW_TESTED:      LKC</p>

<p>MW_ALTERNATIVE: BKC</p>

<p>TB1_TESTED:     BKC</p>

<p>L_LKC_FW_PATH: "PathToFolder"</p>

<p>L_LKC_MW_PATH: "PathToFolder"</p>

<p>L_BKC_PATH:    "PathToFolder"</p>

<p>J_LKC_FW_PATH: "PathToFolder"</p>

<p>J_LKC_MW_PATH: "PathToFolder"</p>

<p>J_BKC_PATH:     "PathToFolder"</p>

<p>P_LKC_FW_PATH:  "PathToFolder"</p>

<p>P_LKC_MW_PATH: "PathToFolder"</p>

<p>P_BKC_PATH:    "PathToFolder"</p>

<p>TB1_LKC_PATH:  "PathToFolder"</p>