title: Cannot convert the value of type "System.String" to type "System.Collections.Hashtable"
body: <p>In Azure Devops I'm trying to run a block of Azure Powershell inline script:</p>
  
  <pre><code>Invoke-AzVMRunCommand -ResourceGroupName xxx-Name xxx -CommandId 'RunPowerShellScript' -ScriptPath $env:SYSTEM_DEFAULTWORKINGDIRECTORY/_alias/xxx.ps1 -Parameter $env:xxx -Verbose
  </code></pre>
  
  <p>As you can see I am passing a parameter to the xxx.ps1 script. This is a small piece of the content of the xxx.ps1 script:</p>
  
  <pre><code>Param(
  [string]$xxx
  )
  
  #create AD Group
  $ADGroupName = "AD" + $xxx+ "_AD"
  .....
  </code></pre>
  
  <p>When I run this code I get the following error in the logs:</p>
  
  <blockquote>
    <p>[error]Cannot bind parameter 'Parameter'. Cannot convert the "valueofthevariable" value of type "System.String" to type "System.Collections.Hashtable".</p>
  </blockquote>
  
  <p>How can I correctly pass the value as parameter?
  Thanks!</p>