I am trying to invoke a shell command with a modified environment via the command env.
env
According to the manual
env HELLO=\'Hello World\'
Here is an easier way to confirm shell is working as expected.
env A=42 env env
The first command runs sets A to 42 and runs env. The second command also runs runs env. Compare the output of both.
A