title: Unattend.xml - FirstLogonCommands - Only the first will run?
body: <p>I'm building a win10 machine via USB but when it boots the first time to the desktop, only the first script would run (the Pop out notification), Here is the snippet of my <code>Unattend.xml</code>:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;FirstLogonCommands&gt;
      &lt;SynchronousCommand wcm:action="add"&gt;
      &lt;Description&gt;Pop out nOtification&lt;/Description&gt;
      &lt;Order&gt;1&lt;/Order&gt;
      &lt;CommandLine&gt;powershell Add-Type -AssemblyName PresentationFramework; [System.Windows.MessageBox]::Show('Make sure the computer is connected to the unauth port before continuing!!')&lt;/CommandLine&gt;
      &lt;RequiresUserInput&gt;true&lt;/RequiresUserInput&gt;
      &lt;/SynchronousCommand&gt;
      &lt;SynchronousCommand wcm:action="add"&gt;
      &lt;Description&gt;Rename and Join  Computer to Domain&lt;/Description&gt;
      &lt;Order&gt;2&lt;/Order&gt;
      &lt;CommandLine&gt;powershell Add-Type -AssemblyName Microsoft.VisualBasic; $COMPNAME = [Microsoft.VisualBasic.Interaction]::InputBox('Enter New Name', 'Rename Computer'); $OLDNAME = hostname; $CRED = Get-Credential -Message 'Enter admin credential'; $OUPATH = 'OU=Windows10,OU=LTCP User Computers,DC=domainhere,DC=com'; write-host ' after a restart'"`n"; Add-Computer -DomainName "domain.com" -ComputerName $OLDNAME -NewName $COMPNAME -Credential $CRED -OUPath $OUPATH; write-host "`n"'Join sucessful, machine is in WIN10 OU.. restarting in 10s' -ForegroundColor Yellow; Start-Sleep 10; Restart-Computer&lt;/CommandLine&gt;
      &lt;RequiresUserInput&gt;true&lt;/RequiresUserInput&gt;
      &lt;/SynchronousCommand&gt;
  &lt;/FirstLogonCommands&gt;
  </code></pre>
  
  <p>I have verified that the script runs fine in PowerShell ISE, Anyone knows why this happens?</p>