Well it's kind of impossible.. they would have to rewrite it and make it totally better. Let me organize it in tiers on how it's already been infiltrated, and even the topmost tier is still working.
PBOS: PBOs can mess up the game all sorts of ways, and its easy to make a name/distance esp, invisible to ai, godmode, spawn objects, do anything with this.
Tier 3- Packets - Semi-Detected/still Bypassable
People have been using WPE and packeteditors to bypass PBO Sig checks for years. Until recently, it was publicly unknown and a good method to use, and there are at 1 way which I was using in the past, not posted here, which still works half and half to bypass with packets.
Tier 2- CRC signing - Semi-Detected/still Bypassable
The simple copy and paste of the last 20bytes from a signed pbo to a user hacked PBO. Recently caused to be detected by Darky's release. However, as has been mentioned and shown, it is still useable and is still the main bypass method used by most or all PBO hackers.
Tier 1- WINAPI level patching
This is something I've worked on a bit ever since that lobby thing which is still bypassable by Tier3 and Tier2. You can set it to force-enable the lobby once you're in the lobby by using a debugger and patching it to take certain JMPs or changing the EAX registers.. also working on a much cleaner way to bypass the 'Need a bi.sign for addon' kick which comes up when you have no bi.sign, but it is possible at least, with about 5 patches and some debug work. So with a debugger, if you really needed to join a random server with a disabled lobby, you could do it without even a bi.sign and enable the lobby.
Tier 0- C++ engine hacks
Usually for game hackers it's Tier 3 (WINAPI/usermode, highly detected but bypassable), Tier0 (kernal mode, undetected, ASM), but for Arma2 the last Tier is Tier3 because of the bad anti-cheats. Godmode/ESP is possible with this.
So to answer your question or plea, or whatever it is, your attempts at using scripting language to detect the scripts within PBOS is only really the same as a 'game addon' and would never go below Tier 2.