how to create and remove local server / PC username for non domain joined server ?

Hi,

I don't know if it is possible with powershell to create and remove local server / PC username for non domain joined server ?

As for the domain member server, we can use ADSI.

Thanks.