Most of the examples you see(with exception of those using C# or VB.net) are a representation of what the action list of your command would look like.
The examples will illustrate how your command can be made to work, however it is not possible to copy-paste that text into VoiceAttack to make a command directly.
The command can be recreated by adding the appropriate actions to your command in the given order, with the given parameters.
E.G.
Set Text [~~MyProcess] to 'notepad'
is a "Set a Text Value" action, with the "Variable Name" field set to "~~MyProcess", and the "Text" field set to "notepad".
and
Begin Text Compare : [{PROCESSEXISTS:~~MyProcess}] Equals '1'
is a "Begin a Conditional (If Statement) Block" action, with the "Text" tab selected, the "Variable Name / Token" field set to "{PROCESSEXISTS:~~MyProcess}", and the "Text" field set to "1".
The lines beginning with "//"(This has no significance in VoiceAttack, but is used by the author of your example to mimic C style comments, where two forward slashes tell the compiler to ignore whatever comes between them and the nearest new line marker, in order to indicate visually that they're comments) are "Add a Comment to the Action List" actions, which do nothing functionally and could be left out, but serve to further clarify the example.