This is an overly broad request and not really a PS issue.
You don't show any of your code and what you'd expect to happen.
Why are you using Start-Process to run a .ps1 file, from a PS GUI app, that is already running in a host operation?
Start-Process, by design, is to start a completely separate operation/instance not within the same running instance.
All of your separate .ps1 files, should be functions in your from code to call. .EXE/.MSI, etc., are called with Start-Process or other options.
So, this is an issue with how you are trying to go thru this, not a PS issue. It's a human logic one. If your in a multi-form GUI, once you open the child the parent will lose focus (until you close the child), it's supposed to. Again, not a PS issue but an understanding of how Multi-form GUIs work.
There are a lot of YouTube videos that take you through this sort of thing as well as GUI Design blogs / articles to assist. Just search for them.
This article is using a commercial tool (a really good one for this stuff), but the concept is the same if you are designing GUIs manually.
You must be logged in to reply to this topic.