cmd's `echo %* >> file` keeps the space before the redirect, so the exact compare failed under both pwsh and Windows PowerShell (verified on promise).
cmd's `echo %* >> file` keeps the space before the redirect, so the exact compare failed under both pwsh and Windows PowerShell (verified on promise).