@matrixebiz -
please take a computer programming 101 course, i implore you!
I have watched your questions and i can tell you are smart but know very little about writing software. Here is an online course i recommend for you:
https://www.udacity.com/course/intro-to ... nce--cs101 - it is free and it is fun, a few years ago when i was binging on MOOCs i skimmed it for entertainment's sake. All you need is your browser, watch videos and try code there. It's in Python if i remember but that's irrelevant - when you finish it you will know the ropes and doing what you want in BrightScript will be a walk in the park (not like right now - challenge for even the simplest things).
Go and finish it first - then come back.