Possible Duplicate:
Sometimes PowerShell stops sending output until I press enter. Why?
I am executing powershell commands like: powershell.exe "Get-Process java | Stop-Process" and when the command finishes it is requiring me to press Enter before returning me to the console.
Is there a way of executing a command so that I dont have to press enter to be returned to the console?