title: 'Set-AzureWebsite' is not recognized as the name of a cmdlet,
body: <p>I am trying to run following powershell cmdlet on my azurewebsite</p>
  
  <pre><code> public string RunPowerShellScript()
      {
  
          try
          {
              RunspaceConfiguration runspaceConfiguration = RunspaceConfiguration.Create();
              Runspace runspace = RunspaceFactory.CreateRunspace(runspaceConfiguration);
              runspace.Open();
              RunspaceInvoke scriptInvoker = new RunspaceInvoke(runspace);
              Pipeline pipeline = runspace.CreatePipeline();
              //Here's how you add a new script with arguments            
              Command myCommand = new Command("Set-AzureWebsite");
              myCommand.Parameters.Add("Name", "rmssimple");
              myCommand.Parameters.Add("HostNames ", "@('test.posxyz.com', 'xyz.com')");
  
              pipeline.Commands.Add(myCommand);
              var results = pipeline.Invoke();
  
              return Content(results[0].ToString());
          }
          catch (Exception ex)
          {
              return Content(ex.Message);
          }
  
  
      }
  </code></pre>
  
  <p>but i get bellow error</p>
  
  <blockquote>
    <p>The term 'Set-AzureWebsite' 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.</p>
  </blockquote>