I have a powershell script that is calling a jar via the following code:
Start-Process java -ArgumentList '-jar', "$jarPath", "$csvPath"
However, the output from the jar is not coming through. I'm pretty sure its running successfully, but I'd like to be sure. How can I pass it through to the Powershell console?
Start-Processshould do that by default. What does the Java code look like that supposedly generates output?java -jar "$jarPath" "$csvPath"straight and I'm now getting output to the console.Start-Processwith the parameter-NoNewWindow. Or simply use the call operator (see below).