title: copy files from one location to another in powershell script, in addition checking for certain values
body: <p>So I have folder with files in it, in a certain location</p>
  
  <pre><code>C:\Users\ainfowara\Desktop\testfiles
  </code></pre>
  
  <p>so I want to move those files to this location </p>
  
  <pre><code>C:\Users\ainfowara\Desktop\destinationTestfiles
  </code></pre>
  
  <p>the "testfiles" have files of this format <code>txt.*.test.*</code> so basically I wanna check before I move the files that they have those two main stuff (<code>txt</code>) and (<code>test</code>) in the third part. </p>
  
  <p>can someone help me,  how can perform this in powershell script</p>
  
  <p>I know I can do this, to set the folders paths</p>
  
  <pre><code>path_src= C:\Users\ainfowara\Desktop\testfiles
  path_dst= C:\Users\ainfowara\Desktop\destinationTestfiles
  </code></pre>
  
  <p>thanks in advance for the help </p>