title: how to insert a string to new line to a file in azure pipeline?
body: <p>New to windows environment,i have requirement to insert a string to a yaml file using azure pipeline </p>
  
  <p>string : <code>Version: 7368684846gdvjdgjv</code></p>
  
  <p>file name: test.txt</p>
  
  <p>file content:</p>
  
  <pre><code>    test:
        test1: one
        test2: two
        key: value
  </code></pre>
  
  <p>below is the step i have used in pipeline </p>
  
  <p><code>- script: 'echo ^ Version: 7368684846gdvjdgjv &gt;&gt; test.txt'</code> and tried different options as below mentioned </p>
  
  <p><code>- script: 'echo. &amp; echo Version: 7368684846gdvjdgjv &gt;&gt; test.txt'</code></p>
  
  <p>after this the file content looks like this </p>
  
  <pre><code>    test:
        test1: one
        test2: two
        key: value Version: 7368684846gdvjdgjv
  </code></pre>
  
  <p>but expected is </p>
  
  <pre><code>    test:
        test1: one
        test2: two
        key: value 
        Version: 7368684846gdvjdgjv
  </code></pre>
  
  <p>is there any option to achieve this functionality.  </p>
  
  <p>Note:- agent is windows machine </p>