That's good... one step at a time.
Now, can you do it *easily*?
AFAIK, to interact, the task needs to run under the same creds as the user who's desktop you need to interact with. How do you create a task in a logon script that would pass the user's password?

Easily said, not so easily done.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.