how to run java statements using newly created command prompt by java program?