$TaskName: in a double-quoted string is read as a drive-qualified variable, so the script died before -RunOnce.