title: Environment variables not working properly
body: <p>I'm trying to run an application that reads an environment variable that contains a JSON with about 22k characters. The project setup tells me to use <code>$(cat ./path/to/file)</code> to correctly configure it, but as I'm using windows, this commands do not work.</p>
  <p>I've tried copying the contents of the file to the variable using the GUI Environment Variable, but its input truncates the value to a certain limit which is not even on half of the file.
  After this I tried setting the variable using the Powershell with the command:</p>
  <pre><code>$env:myvar = iex '$(type path/to/file)'
  </code></pre>
  <p>and then saving the result with:</p>
  <pre><code>[System.Environment]::SetEnvironmentVariable('MYVAR', $env:MYVAR, [System.EnvironmentVariableTarget]::Machine)
  </code></pre>
  <p>After these commands, Powershell is able to print the result correctly but CMD still prints only part of the value when I <code>echo</code> it.</p>
  <p>This is very odd because the regedit shows the correct value <a href="https://stackoverflow.com/a/58090669/6279345">as suggested here</a>.</p>
  <p>The application still can't process the value because it is not complete.</p>
  <p>Is there any fix for this?</p>