Porting my bat scripts to PowerShell. Two problems: $info expands in strings like "$info"; when running commands from a file somewhere spoil the arguments (in interactive mode appears only the first problem. the console output “hg tip: invalid arguments”).
Command:
hg tip --template "<?php\r\n// ќв® ўв®¬ вЁзҐбЄЁ бЈҐҐаЁа®ў л© д ©« б Ёд®а¬ жЁҐ© ® ⥪г饬 ЎЁ«¤Ґ ¬®¤г«п\r\n$info = array(\r\n'rev' => '{rev}',\r\n'date' => '{date|isodate}',\r\n'changeset' => '{node}',\r\n);" > modules/video/version.php
to not evaluate
$infoas variable you must write it as`$info. Like:$ is powershell keyword therefore `$