I'm doing some automation with Salt using cmd.script with Powershell as the shell. While passing arguments to the state module, I get the error **" Cannot process argument transformation on parameter 'Conn\_String'. Cannot convert value to type System.String."**
I saw this error can be resolved in a regular powershell script by wrapping the variable passed as an argument in single quotes('') but I don't know how I can achieve the same behavior in a salt state file where the variable is set using jinja as seen below. If I enclose Conn\_String in single quotes like this  `"-Conn_String" + 'Conn_String'` in the args, i get Conn\_String in the PowerShell when I Write-Host instead of the actual connection string. I appreciate any help in resolving this.

Here is an example of my state and PowerShell script:

```
# pillar info in state
# content of Conn_String is "Server=testServer,2022;database=exampleDatabase;Integrated Security=SSP"

{% set var1 = pillar['var1'] %}
{% set var2 = pillar['var2'] %}
{% set Conn_String = pillar['Conn_String'] %}
{% set args = " -var1 " + var1 + " -var2 " + var2 + " -Conn_String " + Conn_String %}

CallPowerShell:
  cmd.script: 
    - source: {{ salt:// + pillar['var1'] + "/scripts/sendmail.ps1" %}
    - shell: powershell
    -cwd: D:\
    - args: {{ args }} 

# The PowerShell script(sendmail.ps1) that is called
param(
     [Parameter(Mandatory)]
     [string]$var2

     [Parameter(Mandatory)]
     [string]$Conn_String
     )
     Write-Host "$Conn_String"
     ...

```