Windows applications manipulate Windows to perform actions right? A common example would be grabbing focus on launch. The commands to do that are accessible without a compiled program. PowerShell gives you an interface to enter commands and do pretty much anything a Windows application can be programmed to do.
Along with window size, position, etc.
Here is an example:
Summary: Boe Prox shows us how to manage window placement in Windows PowerShell. Honorary Scripting Guy and Cloud and Datacenter Management MVP, Boe Prox, here today filling in for my good friend, the Scripting Guy. Today I start a little weekend fun by using a technique known as platform invoke,
devblogs.microsoft.com
Now the windows registry can store a lot of things, so all you might need it to move things around and that behavior will be repeated the next time. But that depends on how the application was written.
You could modify shortcuts to applications to launch a script to take actions after the program is loaded.
Getting into the weeds here, you would search for the process, or sub-process that lets you know it is ready, then run the commands to manipulate the application.
Not something I have ever needed to sit down and do, just generally possible and in various ways not mentioned above.
AutoHotKey is a common tool to use for essentially writing simple user input commands into a shortcut key.
Many applications have their own command line switches that can be used to modify behavior on start up. Maybe not to that level of detail though.