Sourcecode and more about this tool at:

https://tcpip.wtf/en/rescreen-tool-to-move-all-windows-to-your-win-main-screen.htm