Hi Mark A Gregory,
Of course it would be best if M could do that, in your favour, but your underlying expectation is reasonable, though the system architecture was never designed for declarative desktop replay. Everything above the window manager is app-driven, not shell-driven. Automation is therefore the only practical route until Microsoft introduces a layout API, and none exists today.
Anyway, relying on mouse-key recorders will work, but it is fragile, because mouse and keyboard recorders that rely on absolute screen coordinates will fail under common conditions like resolution changes or DPI scaling. AutoHotkey remains the correct tool because it can target UI elements by their internal class names and control IDs, ensuring consistent execution. Write a script that includes a delay for shell stability, launches Task Manager with Ctrl+Shift+Esc, then uses Send commands to navigate: "!v" for View menu, "s" for Summary View, and additional keys to set the window state. Compile this script and place the executable in your Startup folder for automatic execution at logon.
I hope my ideas can be some of your help. It's really appreciated of you to accept the answer if you find it useful to some extent. Thank you :)
VP