AFAIK the only way to find the window of your processes shell is to find the console task for your process and send it an ACTION_DISK_INFO (yes, disk info

DOS packet. If successful, it returns a window pointer in Res1.
I would tell you how to do this in detail, but i'm at work and my Amiga is not.