scriptdeck.sdPlugin/On_ScriptDeck.Start-Process.WillAppear.ps1
$invokeError = $null if ($event.MessageData.payload.settings.WillAppear) { Invoke-Expression -Command $event.MessageData.payload.settings.WillAppear -ErrorAction Continue -ErrorVariable $invokeError if ($invokeError) { Send-StreamDeck -ShowAlert -Context $event.MessageData.Context } else { Send-StreamDeck -ShowOK -Context $event.MessageData.Context } } |