I am trying to run a .jar file from Powershell that requires the user to input four parameters through Command Prompt after executing the .jar. Each parameter is inputed as a new line. I would like to automatically read these parameters in from a .csv where each line contains one parameter.
I currently run the .jar by calling java -cp some.jar. The .csv and .ps1 are in the same directory.
I know with Shell this could be done with cat parameters.csv |. Is there an equivalent in PS? This question is related but does not deal with reading a .csv.