I took your script and ran it 1 ESXi server. Please find expected and actual output.
Expected Output -
10.136.0.133-10.136.0.133 ( VLAN300 ),10.138.128.1-10.138.143.254 ( VLAN750 ),10.138.0.1-10.138.3.254 ( VLAN700 ),
10.138.16.1-10.138.23.254 ( VLAN710 ),0.0.0.1-255.255.255.254 ( VLAN310 ),10.136.232.1-10.136.239.254 ( VLAN203 ),
10.136.120.1-10.136.127.254 ( VLAN204 ),10.136.128.1-10.136.128.254 ( VLAN450 ),10.137.8.1-10.137.9.254 ( VLAN760 ),0.0.0.1-255.255.255.254 ( VLAN457 )
Actual Output:
10.136.0.133-10.136.0.133 (VLAN 300),10.138.128.1-10.138.143.254 (VLAN750),10.138.0.1-10.138.3.254 (VLAN 700),
10.138.20.1-10.138.23.254 (VLAN 710), 10.136.22.164-10.136.22.165 (VLAN 310),10.136.232.1-10.136.239.254 (VLAN 203),
10.136.120.1-10.136.127.254 (VLAN 204),10.136.128.1-10.136.129.254 (VLAN 450),10.137.8.1-10.137.9.254 (VLAN 760),0.0.0.1-255.255.255.254 (VLAN 457)