What do you mean "you can't get it" when running a script?
What happens? Do you get an error? The wrong value? Nothing?
What happens?
It's a basic object property. So it should be a simple collection of it's value in a run. So either the object is not mapped right, so not being found. Or you're reading the wrong property. Or you are not refreshing the object state before querying it? Or something else ......
A little more info on:
1 - What your script is trying to do, and the steps leading up to this.
2 - What happens when you "can't get it". (Error messages etc)