workflow DoSomeWork { Get-Process -Name notepad | Stop-Process }
This is a basic example of a PowerShell Workflow definition.