Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.
WinUIShell is a PowerShell module that allows you to create WinUI 3 applications in PowerShell. Since the API of WinUIShell tries following the WinUI 3's API, you can read the Windows App SDK ...