title: how to alter valid windows icon programmatically?
body: <p>I need create like 10k different icons for testing, can be in C# or powershell.
  I have actually 10k identical icons files with different names and I thought I could easily read binary icon in, convert to bytes inject some random number and write back to a file but it doesn't work that way as I see.</p>
  
  <pre><code>$fi = @(Get-ChildItem  D:\icons -rec  | ForEach-Object -Process {$_.FullName})  # | select -first $amount) 
  $no = 0
  
  foreach($i in $fi)
  {
      $array =  Read-FileByte $i;
      $array = $array + [System.Text.Encoding]::UTF8.GetBytes($no) 
      [System.IO.File]::WriteAllBytes($i, $array) 
      $no++
  }
  </code></pre>
  
  <p>After this code run icons still are considered by windows identical.</p>
  
  <p>ALternative way would be creating valid 10k icons programmatically,
  is there a way to do this?
  thanks</p>