Use the API call to SetWindowPos. It will locate and size a window, and change its zorder.
nomainwin open "Hi" for window as #1 #1 "trapclose [quit]" h=hwnd(#1) x=10 y=50 width=500 height=100 calldll #user32, "SetWindowPos",_ h as ulong,_ 'window handle _HWND_TOP as ulong,_ 'position flag x as long,_ 'new left x coord y as long,_ 'new top y coord width as long,_ 'new window width height as long,_ 'new window height _SWP_SHOWWINDOW as long,_ 'SetWindowPos show flag re as boolean wait [quit]close#1:end