That is possible, however because minimizing to the system tray doesn't exist within Windows as a feature, but instead is "faked" by hiding the window and showing a system tray icon, the application window won't be available.
VoiceAttack can work around this for itself (because it has the information on its own window internally).
This can be done using a (C#) inline function:
public class VAInline
{
public void main()
{
VA.Utility.RestoreUI();
}
}
Minimizing should be possible using the normal "Perform a Window Function" action, however it can also be done by calling the "MinimizeUI()" method (I.E. rather than the "RestoreUI()" method, other that that the inline function would be identical)
There is no native method for checking that state, or toggling it directly, as far as I'm aware, so you'd need two commands.