title: Creating users with Powershell
body: <p>I am trying to learn PowerShell.</p>
  <pre><code>$newuser = ‘ash’, ‘bob’, ‘charlie’, ‘david’
  
  $newuser | foreach({New-LocalUser -Name $_newuser -Password “123123” -Description “Students”})
  </code></pre>
  <p>What I am trying to do is to create new local accounts with each name on the list, <code>$newuser</code>, with the password and Description I have.</p>
  <p>I have googled a lot and tried other things, but no luck.</p>
  <p>Do I need to create a list using this syntax? <code>$newuser = @(ash, bob, charlie, david)</code></p>
  <p>Also I am confused with what to put after <code>-Name</code>.
  Tried something like <code>-Name $newuser</code>, <code>-Name $__.newuser</code>, <code>-Name $_.($newuser)</code>, etc.
  I have been looking for any method to call each object from the <code>$newuser</code> for creating each user account.</p>
  <p>Any suggestion will be appreciated!!</p>