title: Issue with path containing [ and ( when using -Path
body: <p>I try to write a script with PowerShell to move 3 folders. I've got some issue due to the different <code>[]</code> and <code>()</code> in my path. I can't change the path and want to find a solution.</p>
  <p>The goal is to check where the 3 folders are and to change their position.</p>
  <p>Here's my code:</p>
  <pre class="lang-bsh prettyprint-override"><code>    [System.Reflection.Assembly]::LoadWithPartialName(&quot;System.Windows.Forms&quot;)
  
  if(((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[TMX] IF2 Red Shed&quot;) -eq $True ) -and ((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[CP] Immersive Farm 2&quot;) -eq $True ) -and ((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[FTM] Immersive Farm 2 Forage+Ore&quot;) -eq $True ))
      {
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[TMX] IF2 Red Shed -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[CP] Immersive Farm 2 -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods\[FTM] Immersive Farm 2 Forage+Ore -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement
      }
  Elseif(((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[TMX] IF2 Red Shed&quot;) -eq $True ) -and ((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[CP] Immersive Farm 2&quot;) -eq $True ) -and ((Test-Path &quot;D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[FTM] Immersive Farm 2 Forage+Ore&quot;) -eq $True ))
      {
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[TMX] IF2 Red Shed -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[CP] Immersive Farm 2 -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
      Move-Item -Path D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Map immersive\dossier de changement\[FTM] Immersive Farm 2 Forage+Ore -Destination D:\Program Files (x86)\Steam\steamapps\common\Stardew Valley\Mods
      }
  Else
      {
      $oReturn=[System.Windows.Forms.Messagebox]::Show(&quot;No folders&quot;)
      }
  </code></pre>