Powershell ISE opens a cmd prompt when executing a script -
when run scripts within powershell ise, open cmd prompt briefly , close. script has executed don't chance see results before closes. optimally have output display in powershell.
this happens script run here basic example changes directory , runs postman tests:
cd c:\path\to\file\ .\newman -c "collections\platformrelease2.4.json" -e "collections\platform20release202.4" -o "newmanoutput.json" cd c:\path\to\starting\dir
newman command-line collection runner postman. executing third party command-line program opens command prompt.
try
invoke-expression '.\newman -c "collections\platformrelease2.4.json" -e "collections\platform20release202.4" -o "newmanoutput.json"'
Comments
Post a Comment