title: Powershell - Looping multiple variables with multiple strings
body: <p>Not sure if this is even possible but I wanted to ask.</p>
  
  <p>I have a powershell script that does some basic copying of files and directory cleanups.  I need to run the same script in loop but changing two variables each run.</p>
  
  <p>So I would have list of variables:
  $tml = @("site1","site2","site3")
  $pc = @("pc1","pc2","pc3")</p>
  
  <p>Then my script would be something basic like this:
  Copy-Item -Path E:\disaster_rec\$tml\ -Recurse -Destination \$pc\c$\disaster_rec -Force</p>
  
  <p>But through each run, I would want it to use the next variable string in line for each variable.</p>
  
  <p>So it end up running like this:</p>
  
  <p>Copy-Item -Path E:\disaster_rec\site1\ -Recurse -Destination \pc1\c$\disaster_rec -Force</p>
  
  <p>Copy-Item -Path E:\disaster_rec\site2\ -Recurse -Destination \pc2\c$\disaster_rec -Force</p>
  
  <p>Copy-Item -Path E:\disaster_rec\site3\ -Recurse -Destination \pc3\c$\disaster_rec -Force</p>
  
  <p>Is this at all possible and if so, could you point me in the right direction?  I've tried using foreach but can't seem to get it working with two variables.</p>
  
  <p>Any help would be greatly appreciated.</p>