Right now I use Hammerspoon for macOS. I used to use Phoenix. On Windows there was AutoHotkey. On X11 I think the twm family allows you to move Windows to specific positions and sizes. There was also sawfish. Maybe wmctrl is a relatively modern thing and works with Gnome and KDE and other environments. What to do on Wayland I don’t know.