Instead of just asking for
_TaskInfo[taskindex]
prepend it with a namespace
TwinCAT_SystemInfoVarList._TaskInfo[taskindex]