簡單的工作流示例

workflow DoSomeWork {
  Get-Process -Name notepad | Stop-Process 
}

這是 PowerShell 工作流定義的基本示例。