my test1.exe was also passing parameters to test2.pl, if I'll make test2.pl as test2.pm then how these parameters will be passed.
Also if I am writing use test2,pm in test1,pl then test2,pm GUI window appears first which is wrong.
What I want is test1,exe should have a button by clicking on which we can pass parameters to test2,pm and then the test2,pm runs a GUI which should be able to have other buttons too inside it.