Using the following giving the button desired effect, thought you had to use a panel in a panel type object. But seems button type works good on panels too as described by resolution comment(s).
´$loginButton = New-Object Windows.Forms.Button
$form.Controls.Add($loginButton)
$form.AcceptButton = $loginButton´
Suggested by @Jimi. Thank you also @mklement0