If you want to delete or create a scheduled task on Windows 11/10 using Windows PowerShell, this tutorial will help you do that. You do not have to open Task Scheduler to create the scheduled task.
PowerShell's scripting language and ability to interact directly with Windows system elements give it a superpower that Command Prompt lacks.