script to move and resize window to second monitor

I cannot figure out how to open a window (know how to do that) and move it to my second monitor’s upper RIGHT corner and resize it to 400X200. There is some secret code in the window resizing that I cannot figure out. Can anyone explain this to me?