I am starting several powershell (version 5) windows from a batch file and would like to position them when starting them.
This is what I use to start the powershell from cmd:
start powershell -NoExit -Command "Get-Content .\MyLog.txt -tail 10 -wait | Select-String 'Search term' | timestamp"
The "start" command only gives the option to start a new window maximised or minimised (min
and max
).
I am looking to position my window using x and y coordinates, eg. -X 1911 -Y 12
.
I have found several solution but they seem to be tailored to be run from a powershell rather than a batch file (eg. Set the position of Powershell window)
Any ideas?