Legal name change after H1b lottery registration

Hi,

I am currently in the process of a legal name change through court order.

Can you please let me know if I can

  • register for H1b lottery 22 with my current legal name and passport
  • and if selected, use my new legal name and passport to file the H1b petition?

Please let me know.
Thank you

You can use your current name, incase got selected in lot, u may notify ur employer/attorney while filing petition

Same with my case