title: Downloading a file from Adls gen1 using powershell is not working
body: <p>I am trying a download a file from azure data lake store using powershell script. The code is triggered from a runbook in azure cloud. Looks like <code>Export-AdlStoreItem</code> is not working as expected.I dont get any error messages or compilation errors. In fact when this command is executed a zero byte file is generated in the destination.The name of that file is <code>TemporaryFile2020-06-02_14-56-57.datc18371c2-d39c-4588-9af0-93aa3e136b01Segments</code>
  what is happening?.Please help!.</p>
  
  <pre><code>$LocalDwldPath = "T:\ICE_PROD_DATA_SOURCING\FILE_DOWNLOAD_PATH\TemporaryFile$($TimeinSec).dat"
      $SourcePath = "Dataproviders/Landing/GCW/HPIndirect/Orders/AMS/gcw_hp_indirect_orders_ams_745_20200601_04_34_01.dat"
      $PRODAdlsName = "itgdls01"
      Export-AdlStoreItem  -Account $PRODAdlsName -Path  $("/" + $SourcePath.Trim()) -Destination $LocalDwldPath -Force -ErrorAction Stop
      if( Test-Path $LocalDwldPath.Trim() )
      {
      Get-Content -Path $LocalDwldPath.Trim() -ReadCount 1000 |% { $FileCount += $_.Count }   
          Remove-Item $LocalDwldPath.Trim()
          Set-Content -Path $cntCaptureFile -Value $FileCount
          $TimeinSec = TimeStamp2
          Add-Content -Value "$TimeinSec Log: Identified file for getting count is $($SourcePath.Trim()) and the count is $FileCount" -Path $logfile  
      }
      else
      {                       
          $TimeinSec = TimeStamp2     
          Add-Content -Value "$TimeinSec Error: Identified file for getting count is $($SourcePath.Trim()) and the count capture failed as local file is not found!" -Path $logfile
      }   
  </code></pre>