working around schtasks weird quoting

Apparently schtasks will turn single quotes contained in a double quoted argument into double quotes in the task.

For example:

   /TR "cmd /c 'echo hi'"

will make the created task's action run:

   cmd /c "echo hi"

Windows is strange sometimes o_O