title: PowerShell complaining about path, But path is valid
body: <p>In the following code, when $client = XRS1</p>
  
  <pre><code>if (Test-Path C:\dbbackups\cm_$client-*.full.bak){
  Rename-Item -path C:\dbbackups\cm_$client-*.bak -newname cm_$client.bak
  Write-Host "New file found, renamed to: cm_$client.bak"
  </code></pre>
  
  <p>The Test-Path statement can find C:\dbbackups\cm_xrs1-2013414.full.full.bak but -path in the Rename-Item can't.</p>
  
  <p>The error I get is</p>
  
  <pre><code>Rename-Item : Cannot process argument because the value of argument "path" is not valid. Change the value of the "path" argument and run the operation again.
  At C:\Users\Aaron\Documents\0000 - PowerShell DB Update Utility\UpdateCMDatabases.ps1:167 char:1
  + Rename-Item -path C:\dbbackups\cm_$client-*.bak -newname cm_$client.bak
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : InvalidArgument: (:) [Rename-Item], PSArgumentException
      + FullyQualifiedErrorId : Argument,Microsoft.PowerShell.Commands.RenameItemCommand
  </code></pre>