Confusing subject line. Let me explain. I am running Powershell 2 and writing in the ISE. My script is making a call to a java program and is not handling that correctly. I put a line in to echo the java command to a file. I can copy and paste the contents of the file (which is the expanded java command) into the lower half of my powershell ISE window where there is a ">" prompt and my script/command I copied and pasted runs perfectly. It does not run correctly when I hit the run button in the ISE. Hopefully this is clear. Bottom Line: Java command does not run from within ISE, but when pasted into the ISE command prompt window.. it does run. I have tried many many things here and I am coming up with nothing. Any help is appreciated.
Here is the command from the output file:
& java -xms64m -Xmx512 -cp ".;xxxx;xxx" com.data.dataexe -u username -p password -M "C:temp\input_file" -l "C:\temp\logfile.txt"
At this point I have no ideas on what to do next. Hoping someone may have an idea. thanks.