For anyone using 'cmd' instead of 'pwsh' (such as me)
I discovered that for Windows 'cmd' shell that
ECHO SOME_ENV_VAR=Some Value >> %GITHUB_ENV%
is what you need