I have developed a PHP script to help automate creation of many Logical Switch / Segments.
VMware recommends to create Segments instead of Logical switches directly, as the Logical switches menu is the old way of doing switches.
Then you’re creating Segments, it will automatically create a new Logical Switch with the specifications of the Segment you just created.
The Github project includes getting current vSphere DvS switches(PowerShell) in json format, so you can prepare the migration to N-VDS by NSX-T.