title: Start-AzAutomationRunbook keeps failing with "Start-AzureRmAutomationRunbook : A parameter cannot be found that matches parameter name 'Wait'."'
body: <p>For whatever reason, the -Wait parameter is not working within my powershell runbook.  I am perplexed as to why this wouldn't work.  I assuming it is a newbie mistake.  Any thoughts?  Full error and code below:</p>
  <p>Error:
  &quot;<strong>Start-AzureRmAutomationRunbook : A parameter cannot be found that matches parameter name 'Wait'.
  At restore_DEV_DBIN_master_runbook:31 char:31
  +
  + CategoryInfo          : InvalidArgument: (:) [Start-AzureRmAutomationRunbook], ParameterBindingException
  + FullyQualifiedErrorId :
  NamedParameterNotFound,Microsoft.Azure.Commands.Automation.Cmdlet.StartAzureAutomationRunbook</strong>&quot;</p>
  <pre><code>workflow restore_DEV_DBIN_master_runbook
  {
      #Establishing Connection
      $connectionName = &quot;AzureRunAsConnection&quot;
      try {
          # Getting the service principal connection &quot;AzureRunAsConnection&quot;
          $servicePrincipalConnection = Get-AutomationConnection -name $connectionName
  
          &quot;Logging into Azure...&quot;
          Add-AzureRmAccount -ServicePrincipal -TenantID $servicePrincipalConnection.TenantID -ApplicationID $servicePrincipalConnection.ApplicationID -CertificateThumbprint $servicePrincipalConnection.CertificateThumbprint
      }
  
      catch {
          if (!$servicePrincipalConnection) {
              $ErrorMessage = &quot;Connection $connectionName not found.&quot;
              throw $ErrorMessage
          }
          else {
              Write-Error -Message $_.Exception
              throw $_.Exception
          }
      }
      if ($err) {
          throw $err
      }
  
      inlinescript
      {
          Start-AzureRmAutomationRunbook –AutomationAccountName 'SQLAutomation' –Name 'scale_down_DEV_DBIN_temp_db' -ResourceGroupName 'SQL-Automation-rg' -Wait
      }
  }
  </code></pre>