title: Copying a file and adding the date to its name in PowerShell
body: <p>Why doesn't this work?:</p>
  
  <pre><code>Copy-Item "C:\Logs\VPNLog.txt" "C:\Backup\VPNLog$(Get-Date -UFormat %d-%m-%Y-%R).txt"
  </code></pre>
  
  <p>Error message:
  <code>Copy-Item : The given path's format is not supported.</code></p>
  
  <p>For the record, this works:</p>
  
  <pre><code>Copy-Item "C:\Logs\VPNLog.txt" "C:\Backup\VPNLog.txt"
  </code></pre>