The PowerShell script is here: https://learn.microsoft.com/en-us/windows-hardware/manufacture/desktop/add-update-to-winre?view=windows-11#extend-the-windows-re-partition
Copy the code to Notepad and save it with the .ps1 extension.
how i am microsoft notepad install,