Fixes #5890: add windows support for motd technique

it would not work on community or enterprise non windows unfortunately, the parser is too strict, and would fail evaluation :(