title: Waiting for copy process to finish
body: <p>Is there any way to wait for the copy process to finish before running another command?
  I tried <code>Start-job</code> and <code>Wait-Job</code>, but it doesn't work.</p>
  
  <pre><code>    $func = {
          function move-tozip
          {
          param([string]$filedest)
              $Shell = New-Object -com Shell.Application
              $b = $shell.namespace($zippath.ToString())
              $b.CopyHere($filedest.tostring())
              #Remove-Item -Path $filedest
          }
      }
  start-job -InitializationScript $func -ScriptBlock {move-tozip $args[0]} -ArgumentList $file
  </code></pre>