Install Windows with script

Hello together,

i’ve never done something with powershell before and i just want to know if there is a way or it’s possible to implement following steps in a script:

  1. Pressing F12 to enter Boot Menu
  2. Select Boot Device (UEFI IP4…) - second option in the list → Enter
  3. Select Operating System Win11 in Windows Setup - fourth Option in List → Enter

The idea is to add the script to the windows task planning. That this is going to be executed at the system start. If this is going to work it would be very helpful because im working from home via vpn with the computer which is in the company.

Thank you very much for help and any ideas!

I have never automated these steps, but try read about pxe boot, diskless boot, scripted pxe, scripted diskless boot.