Cancel a PowerShell task