title: "Get-IISAppPool" not recognised when script is run via Invoke-Command in Powershell
body: <p>I'm trying to pull back a list of app pools on one of our servers. I am running the <code>Get-IISAppPool</code> command. This seems to be working locally however when I call a script via Invoke-Command on a remote machine the command is no longer recognized</p>
  
  <p>I have tried to include modules such as:</p>
  
  <pre><code>Import-Module WebAdministration
  </code></pre>
  
  <p>or</p>
  
  <pre><code>Import-Module IISAdministration
  </code></pre>
  
  <p>and these are not fixing the problem.</p>
  
  <p>Could anyone point me in the right direction?</p>