title: BitsTransfer , percentage output
body: <p>I want to display the download status in percent.</p>
  
  <p>I use a bitjob for my task.</p>
  
  <blockquote>
    <p>Method invocation failed because [System.Object[]] does not contain a
    method named 'op_Division'.
        At C:\Users\administrator\Desktop\test.ps1:56 char:8
        +        $per=$CopyMyBackups.BytesTransferred/$CopyMyBackups.BytesTotal ...
        +        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            + CategoryInfo          : InvalidOperation: (op_Division:String) [], RuntimeException
            + FullyQualifiedErrorId : MethodNotFound
          You cannot call a method on a null-valued expression.
        At C:\Users\administrator\Desktop\test.ps1:57 char:8
        +        Write-Progress -activity "Copying" -status ($per.ToString()+"% ...
        +        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
            + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
            + FullyQualifiedErrorId : InvokeMethodOnNull</p>
  </blockquote>
  
  <p>My script is below:</p>
  
  <pre><code> }
  
  $BitJobs=Import-Csv "$ScriptPath\$CSVListName" | Start-BitsTransfer -Asynchronous -Priority Normal -DisplayName CopyMyBackups
  
      while ($CopyMyBackups | ?{ $_.JobState -ne "Transferred"})
      {
         #  this
         $per=$CopyMyBackups.BytesTransferred/$CopyMyBackups.BytesTotal*100
         Write-Progress -activity "Copying" -status ($per.ToString()+"%") -PercentComplete $per
  
        #$CopyMyBackups = Get-BitsTransfer| ?{ $_.DisplayName -eq "CopyMyBackups"}
  
         Start-Sleep 10
  }  }
  $CopyMyBackups| Complete-BitsTransfer
  </code></pre>