title: powershell create ini file remotely
body: <p>I am trying to create a script to create an ini file via powershell to disable windows UAC. </p>
  
  <pre><code>$functionText = @"`[Options`]
  UpdateKey=04/28/2015 12:50:27 AM
  WINDOW_LEFT=258
  WINDOW_TOP=149
  WINDOW_WIDTH=666
  WINDOW_HEIGHT=519
  WINDOW_MAX=0
  BackupDir=C:\Windows\System32
  UpdateCheck=1
  Language=1033
  (App)Sun Java=False
  NewVersion=5.05.5176
  SkipUAC=1
  FinderInclude1=PATH|C:\|*.*|RECURSE
  FinderInclude2=PATH|D:\|*.*|RECURSE
  FinderIncludeStates=1|1
  I see SkipUAC=1
  ShowCleanWarning=False
  ShowFirefoxCleanWarning=False
  WipeFreeSpaceDrives=C:\
  RunICS=0
  CookiesToSave=*.piriform.com|google.com
  "@
  
  New-Item c:\Program Files\Ccleaner\Ccleaner.ini -type file -force -value $functionText
  </code></pre>
  
  <p>I keep getting Unrecognized token in source text.
  At C:\PROGRA~3\BEANYW~1\Scripts\2480_C~1\~SC52F~1.PS1:1 char:17
  + $functionText =  &lt;&lt;&lt;&lt; @"<code>[Options</code>]
      + CategoryInfo          : ParserError: (:) [], ParseException
      + FullyQualifiedErrorId : UnrecognizedToken</p>
  
  <p>I tried adding the escape character around options to see if that would do it - I think the issue is around the word [options]</p>