0
I have a script.ps1 file and the first line of it is to open another powershell window:
powershell Start-Process powershell -Verb runAs
But the problem is that I need to execute other commands inside the created window.
For example:
powershell Start-Process powershell -Verb runAs
echo ola
I want echo ola to run in the window I created in the first line and not in the default window I used to run the script
If you have a new question, ask it by clicking the button Ask question. Include a link to this question if it helps provide context. - Of Revision
– Kayo Bruno
I don’t understand why your comment @Kayobruno
– Bruno Warmling