It seems that:
Start-Process -WindowStyle Maximized 'C:\Program Files\Microsoft Office\root\Office16\ONENOTE.EXE'
starts OneNote in a window style regardless the parameter is Maximized
or Minimized
:
- If the last time is normal or maximized, then it will open normal or maximized
- If the last time is minimized, then it will open normal
Do you know why? I have version 6 on my Windows 7 32-bit machine.
From Windows Docs: Start-Process