Below is the auto script.

config system auto-script
    edit "restart_wad"
        set interval 86400
        set repeat 0
        set start auto
        set script "diagnose test application wad 99"
    next
end