I am studying the mailkit library, I found just such a construction in one line in c#
msg.Body = new TextPart("html") { Text = "<b>html content</b>" };
on Powershell I can do as many as three lines
$TextPart = [MimeKit.TextPart]::new("html")
$TextPart.Text = "<b>html content</b>"
$msg.Body = $TextPart
Is it possible in powershell to also write this on one line?