Why do you want to do this? Perhaps if you told us why you have this "requirement" we could come up with a better solution. In other words, what problem are you attempting to solve by automating the importing of projects from the command line?
I have a number of projects that need migration. The migration is trigerred when the project is imported in our eclipse based application. I want this import to happen automatically. Can you please suggest a way.