title: Downloading ZIP content through REST API call in Powershell
body: <p>This  is a sample REST API uri to retrieve logs from the AzureDevOps Release. 
   <code>https://vsrm.dev.azure.com/{organization}/{project}/_apis/release/releases/{releaseId}/logs?api-version=4.1-preview.2</code></p>
  
  <p>The Verb is GET and content type is "application/zip"</p>
  
  <p>How do i retrieve the zip file  through a REST API call through powershell  using <code>Invoke-RestMethod</code> ? </p>
  
  <p>If i pass <code>Out-File</code> to this command and save it as zip, it doesn't convert the  binary output of the API response to zip. </p>
  
  <p>How do i do it ? </p>