title: how to move bulk move files and then rename them in sequential order?
body: <p>to test, I'm trying to move c:\Users\myuser\Downloads\test.txt to c:\Users\myuser\Documents\mynewname0001.txt.</p>
  
  <p>The destination folder path is dynamic so for my test I'm using a variable</p>
  
  <p>My final aim is to use GCI + ForEach-Object to move lots and lots of files. But I'm testing with a single file for now.</p>
  
  <p>Here's my script:</p>
  
  <pre><code>$_test = "c:\Users\myuser\Documents"
  $_i = 1
  
  Move-Item -Path "$($_test)\test.txt" -Destination "($($_test)\temp\'newname{0:D4}' -f $_i++)"
  </code></pre>
  
  <p>This is the error I'm getting</p>
  
  <pre><code>Move-Item : Cannot find drive. A drive with the name '(c' does not exist.
  </code></pre>
  
  <p>I can move the files if I don't order them using:</p>
  
  <pre><code>Move-Item -Path "$($_test)\test.txt" -Destination "$($_test)\temp\newname.txt"
  </code></pre>
  
  <p>But I do not know how to introduce the auto incrementing code with it.</p>
  
  <p>Can you please help? Thanks</p>