Referencing tokens {WINDOWMINIMIZED:..} or {WINDOWMAXIMIZED:...} sometimes causes the command to abort. The command only aborts if a matching Window is actually open; if there's no match both tokens return "0".
Attached is a profile with a single command called "Test". Inside you'll see some of the Apps/Window Titles that work, and some that fail. I don't think it's anything to do with the title text. Probably the process for fetching the Window State is failing for some applications.
I have tried using "{TXT:~WindowTitle}" rather than just "~WindowTitle" for the variable. This allows the command to continue, but the output is always "0" regardless of the state of the App being tested. This is true even if the tokens return correct values when using "~WindowTitle".
Thanks for a brilliant product, and hope this is helpful.