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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -

django - CSRF verification failed. Request aborted. CSRF cookie not set -