I try to run exe in a loop in PowerShell, but the program ends with Press any key to continue, so my loop hangs.
My code up to now is:
foreach ($num in 1..50) { .\somethig.exe }
In bash I could use yes command but I cannot find anything similar in PowerShell