When I start Notepad++ from Start menu, the window has certain dimensions and the font size is as I've set it to last time. However, then I execute it from PowerShell, the window is much smaller and so is the font size.
I suspect that I'm not executing the program with me as the invoker. Is that correct and what can I do about it?
I've tried both Invoke-Item
and Start-Process
but they both produced the same result (and I'm not sure about the difference between them, despite googlearching).
function Edit{
param([string]$file = " ")
Invoke-Item 'C:\Program Files (x86)\Notepad++\notepad++.exe ' $file
#Start-Process 'C:\Program Files (x86)\Notepad++\notepad++.exe' $file
}