title: Batch File Error: "The string is missing the terminator: '. " for a Powershell Cmd
body: <h2>Background</h2>
  <p>I have a batch file that is running a PowerShell Script. I've added this batch file to the startup folder of approximately 60 windows computers which are running either the W7 or W10 OS. It runs successfully on 95% of the PCs. On the remaining 5%, the batch file doesn't run and the error that's outputted is shown below.</p>
  <pre><code>The string is missing the terminator '.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : TerminatorExpectedAtEndOfString
  </code></pre>
  <h2>Code</h2>
  <p>This is the code I've written on the batch file.</p>
  <pre><code>@ECHO OFF
  PowerShell.exe -NoProfile -Command &quot;&amp; {Start-Process PowerShell.exe -ArgumentList '-NoProfile -ExecutionPolicy Bypass -File &quot;&quot;%UserProfile%\Desktop\Test.ps1&quot;&quot;' -Verb RunAs}&quot;
  </code></pre>
  <h2>Question</h2>
  <p>What can I do to fix this error and have the batch file run successfully on all computers?</p>