Firstly i have not read the whole thread since it turned into an argument from the start, so forgive if this has been said.

Instead of shoving the code into the timer like that, have the timer call an alias. Obviously with the var as $1 for the alias. Then put the iif into the alias, that way you can actually do something with the results (ie the $true / $false) ect ect ect. Using return inside of a timer is never practical in the least.