title: running a PowerShell command sp 2010
body: <p>I am trying to create a site map with a PowerShell command from this example:
  <a href="http://blogs.msdn.com/b/opal/archive/2010/04/13/generate-sharepoint-2010-sitemap-with-windows-powershell.aspx" rel="nofollow">http://blogs.msdn.com/b/opal/archive/2010/04/13/generate-sharepoint-2010-sitemap-with-windows-powershell.aspx</a></p>
  
  <p>My actions: I copied the code into a file named <code>New-SPSiteMap</code></p>
  
  <p>I opened the PowerShell and wrote</p>
  
  <pre><code>New-SPSiteMap –Url http://centerportal –SavePath C:\inetpub\wwwroot\wss\VirtualDirectories\80\sitemap.xml
  </code></pre>
  
  <p>The error I get is:</p>
  
  <pre><code>The term 'New-SPSiteMap' is not recognized as the name of a cmdlet, 
  function, script file, or operable program. 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:14
  + New-SPSiteMap &lt;&lt;&lt;&lt;  -Url http://mossdev2010  -SavePath C:\inetpub\wwwroot\wss\VirtualDirectories\80\sitemap.xml
  + CategoryInfo          : ObjectNotFound: (New-SPSiteMap:String) [], CommandNotFoundException
  + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>