Cannot determine port due to unknown HANA version

Additionally - if there are many wariants, depending on the installation options:
https://help.sap.com/viewer/0eec0d68141541d1b07893a39944924e/2.0.03/en-US/b250e7fef8614ea0a0973d58eb73bda8.html

Why the script is locked to the logic that v2 = 3"instance"13?
image

Should it be better that the determination of the port, instance, and the version be left to the monitoring admin, by manually entering those data, while tuning the plugin?