New-LocalUser -Name test -Password (ConvertTo-SecureString "password" -AsPlainText -Force)
Set-LocalUser -Name test -PasswordNeverExpires $true
Add-LocalGroupMember -Group test-group -Member test