For future ref…

$user = New-Object System.Security.Principal.NTAccount("contoso", "user") 
$sid = $user.Translate([System.Security.Principal.SecurityIdentifier]) 
$sid.Value