title: Call remote cmdlet (ffmpeg) via Invoke-Command: "... not recognized as the name..."
body: <p>I'm trying to call ffmpeg on a remote transcoding server via Powershell:</p>
  
  <pre><code>$session = new-pssession -computername transcodingserver
  Invoke-Command -session $session -scriptblock { powershell ffmpeg }
  </code></pre>
  
  <p>ffmpeg is correctly installed on the remote server and can be run there, but the remote call results in an error:</p>
  
  <pre><code>ffmpeg : The term 'ffmpeg' is not recognized as the name of a cmdlet, function, script file, or operable program.
      + CategoryInfo          : NotSpecified: (ffmpeg : The te...rable program. :String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
      + PSComputerName        : transcodingserver
  
  Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
  At line:1 char:1
  + ffmpeg
  + ~~~~~~
      + CategoryInfo          : ObjectNotFound: (ffmpeg:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
  NotSpecified: (:) [], RemoteException
  </code></pre>
  
  <p>It seems to me like if the machine, I run <code>Invoke-Command</code> on, tries to run ffmpeg, which is not installed there. What do you have to do, to run ffmpeg on a remote server?</p>