title: "The term 'choco' is not recognized" when executing command remotely
body: <p>I'm trying to use Powershell to remotely install Chocolatey and Choco packages. I was able to install Chocolatey without issue remotely using the following (my txt file contained a single server):</p>
  <pre><code>$ComputerList = &quot;C:\temp\DataDogServers.txt&quot;
  $Computers = Get-Content -Path $ComputerList
  
  Invoke-Command -ComputerName $Computers -ScriptBlock {
      Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
  }
  </code></pre>
  <p>When I then try to execute remote choco commands, its tosses back <code>The term 'choco' is not recognized as the name of a cmdlet, function, script file, or operable program.</code> I confirmed running <code>choco</code> on the remote server properly works.</p>