如何通过 powers shell 命令在任务调度程序中 运行 计划任务

How to run a scheduled task in task scheduler through powers shell command

任何 Powershell cmdlet 到 运行 任务计划程序中的计划任务?

我们有命令通过 powershell 命令禁用、启用、启动、停止任务调度程序中的任务,例如 below.But 我没有找到任何命令 运行 [=17] 中的计划任务=] state.Any想法?

Get-ScheduledTask -Taskpath "\TasksFolder\"|enable-ScheduledTask
Get-ScheduledTask -Taskpath "\TasksFolder\"|disble-ScheduledTask
Get-ScheduledTask -Taskpath "\TasksFolder\"|start-ScheduledTask
Get-ScheduledTask -Taskpath "\TasksFolder\"|stop-ScheduledTask

使用以下 cmdlet 从 powershell 启动计划任务:

Start-ScheduledTask -TaskPath "your task path" -TaskName "your task name"

要停止:

Stop-ScheduledTask -TaskPath "your task path" -TaskName "your task name"