'Powershell Newman run pass --env-var as string

Trying to run via powershell postman collection as following:

newman run $collPath -e $envPath $envVarsStr

where $envVarsStr is a string containg N number dynamically generated --env-var e.g.

--env-var "Base.Url=someurl" --env-var "Password=somepass"

But newman seems to ignore all my --env-vars Using extra file is really not an option for me.

Any ideas on how to pass env-var string correctly?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source