A modern Task Scheduler for Windows 11 exists now, and honestly Microsoft should be embarrassed. Plus, it's free.
Don’t copy and paste the same code over and over again. Instead, create a PowerShell function and save yourself time.