I'm writing a Powershell script which calls an external program like this:
& $toolLocation $toolParameters
The program - which is a console application - runs fine, but at the end it waits for the user to press enter to finish and exit. What I would like to achieve is that the script is not stopping at this point waiting for user input, but continues automatically. Is this possible? If yes, how?
Thanks in advance.
ReadLine(). App behavior like that is incredibly annoying even if you're not trying to wrap a script around it.