title: 'reportgenerator' is not recognized as an internal or external command, operable program or batch file
body: <p>When trying to create a report using 'ReportGenerator' tool as part of Azure devops YAML pipleine,
  below error is being thrown though i installed the tool in previous step.</p>
  <pre><code>- script: dotnet tool install --global dotnet-reportgenerator-globaltool --version 4.6.1
    displayName: 'Install ReportGenerator tool'
    continueOnError: true
  
  - script: reportgenerator &quot;-reports:$(Agent.TempDirectory)/**/*.cobertura.xml&quot; &quot;-targetdir:$(Build.SourcesDirectory)/coverlet/reports&quot; -reporttypes:Cobertura;htmlInline
    displayName: Generate code coverage report
    continueOnError: true
  </code></pre>
  <p>Error : 'reportgenerator' is not recognized as an internal or external command,
  operable program or batch file.
  ##[error]Cmd.exe exited with code '1'.</p>
  <p>Adding logs
  Install Step:
  Script contents:
  dotnet tool install dotnet-reportgenerator-globaltool --tool-path tools --version 4.6.1
  ========================== Starting Command Output ===========================
  &quot;C:\windows\system32\cmd.exe&quot; /D /E:ON /V:OFF /S /C &quot;CALL &quot;E:\Agent_work_temp\d9535a65-152b-4822-a4f2-7e58c11f2418.cmd&quot;&quot;
  You can invoke the tool using the following command: reportgenerator
  Tool 'dotnet-reportgenerator-globaltool' (version '4.6.1') was successfully installed.
  Finishing: Install ReportGenerator tool</p>
  <p>Executing tool :
  Script contents:
  reportgenerator &quot;-reports:E:\Agent_work_temp/**/*.cobertura.xml&quot; &quot;-targetdir:E:\Agent_work\79\s/coverlet/reports&quot; -reporttypes:Cobertura;htmlInline
  ========================== Starting Command Output ===========================
  &quot;C:\windows\system32\cmd.exe&quot; /D /E:ON /V:OFF /S /C &quot;CALL &quot;E:\Agent_work_temp\53dbc699-e878-4458-aaf2-8e69e5c4f09a.cmd&quot;&quot;
  'reportgenerator' is not recognized as an internal or external command,
  operable program or batch file.
  ##[error]Cmd.exe exited with code '1'.</p>