To work with the Task Scheduler in PowerShell, you can use the ScheduledTasks module.  Here are some common tasks you can perform with the Task Scheduler using PowerShell:  List all tasks:  Get-ScheduledTask  Get the properties of the specific task:  Get-ScheduledTask -TaskName "MyTask" | Select-Object *  Create a new task:  $action = New-ScheduledTaskAction -Execute "C:\\path\ o\\program.exe"
$trigger = New-ScheduledTaskTrigger -AtLogOn
$settings = New-ScheduledTaskSettingsSet
Register-ScheduledTask -Action $action -Trigger $trigger -TaskName "MyTask" -Description "My task description" -Settings $settings  Enable or disable a task:  Disable-ScheduledTask -TaskName "MyTask"
Enable-ScheduledTask -TaskName "MyTask"  Remove a task:  Unregister-ScheduledTask -TaskName "MyTask"  You can find more information about the ScheduledTasks module and its cmdlets in the PowerShell documentation or by using the Get-Help cmdlet. For example:  Get-Help Register-ScheduledTask