I was able to create a local account in a remote machine through powershell terminal using the following code :
[ADSI]$server="WinNT://servername"
$HelpDesk=$server.Create("User","HelpDesk")
$HelpDesk.SetPassword("H3lpD3>K")
$HelpDesk.SetInfo()
This works fine.
I tried using New-LocalUser from powershell, but getting the following error : "The term 'New-LocalUser' is not recognized as the name of a cmdlet, function, script file, or operable program."
How to use powershell commands for local user account creation?