Bone layers script

Hello. I have noob question. I’ve made little script for my rig to create bone layer in property panel. It works well except i have to run this script everytime i launch blend with my rig. How to make script run automaticly when i load blend containing this script? But run only this script not others…