When setting compatibility mode to an executable (as described in the ansers to this question), is this applied in any context - be it being run from Explorer, by a shortcut, or from a cmd or Powershell script, or called directly in one of the latter?
Or how could I verify if the set compatibility mode is in effect in the different contexts mentioned above (without compiling some self written c/c++-code)?