iscomputeron -- tells you whether the computer is on
IsItTurnedOn = ISCOMPUTERON
Returns 1 if the computer is on. If the computer isn't on, the value returned by this function is undefined.
print "This program will run until the computer is shut down :)"
Iscomputeron looks nice for endless loops.