OpenSsl fails on the second command in PowerShell
When trying to execute two openssl commands one by one, the second one fails. I've created a repro on Azure Pipelines demonstrating 4 different cases, by name they are
1) win2019 fails running:
on Azure Pipelines hosted pool. This has the specs listed here - https://github.com/actions/virtual-environments/blob/7c96951971ca872b4f02469a3f945af20f517d2b/images/win/Windows2019-Readme.md
2) default succeeded running:
on my local box
3) fromCmd fails running the following from the command prompt:
powershell -command "openssl help | openssl help"
4) fromPowerShellToCmd succeeds running the following from PowerShell:
cmd /c "openssl help && openssl help"
So basically the only failures happen when openssl is invoked directly from PowerShell on the hosted machine, which runs powershell 5.1.17763. I've been able to get it to succeed with other older versions of PowerShell (admittedly on different machines), so this seems like its probably a PowerShell issue to me