Mac Windows Management

Anyone has ready script or ways to achieve the following scenario?

Outcome: Daily working apps side by side on my extended monitor (just 1 extended screen).

  1. Open my Mac

  2. Connect an external monitor via USB C

  3. Outlook and MS Teams will be shown on my extended screen, side by side.

  4. all other windows will be moved to another desktop. Can simplify the scenario with pre-creating a new desktop, move the 2 daily apps to it and position side by side.


I want to start my daily routine fresh with this automation w/o manually adjusting. today I tried the shortcuts app to do this but can only work on main screen and still have other windows in the same Desktop space. Thanks for sharing!