With what rights is your program allowed to run? That's the question.
We get various claims like yours and usually the user gives the program the right to install a driver giving kernel access. Kernel access is end of exercise for every (security) program.
Please provide us with the rights granted to your program. Could you provide mods or interested regulars a download link for your script/program so we can assess it?