Yes. What you wrote will be interpreted as two different commands.
What flow of commands do you normally use to accomplish what you want?
Is it the case that the "myproject console" starts a new console of some type, and the once within that console you type "import /home/spadmin/Desktop/XML/testReport.xml". So the problem is you need to send that import command "to" your console?
I'm thinking that neither PIPE nor input redirect would work here, but instead an argument in invoking that console where it would run a script or command passed to it when it was invoked. If the console doesn't support this, the question becomes one of whether you can modify that console to support that.
What I mean by PIPE would be something like:
And what that would do is take the directory of all C files and if any happened to have the string "test" in their name, it would then output that subset of C files. And I very much doubt PIPE would work here for you.
Input redirection would be something like:
ls *.c > fl1
grep test < fl1
This would create a list of C files in a file called "fl1" using redirection, and then further use redirection to send the contents of fl1 to the grep command. I doubt this would work either because your console would have to allow command redirection to be sent to it as part of invoking it.
Therefore I think it all comes down to whether or not you can launch that particular console with an argument that means "execute this when the console is opened".