com.start-automating.scriptdeck.sdPlugin/On_com.start-automating.scriptdeck.InvokeScript.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 } } |