Maybe i am missing something but /autoawaytime does not toggle anything.
The command you need it /autoaway ^^
/autoaway sets the auto away time but /autoawaytime is not programed in your script FYI perhaps you intended /autoawaytime to be /autoafk?
The command you need it /autoaway ^^