Creating a bat file(shutdown.bat) with content like below:
system-view
interface
shutdown
upload it onto the device.
Configure assistant task on AR:
<Huawei> system-view
[Huawei] assistant task shutdown
[Huawei-assistant-task-shutdown]if-match timer cron * * 2 * * * 2021
[Huawei-assistant-task-shutdown]perform 1 batch-file flash:/shutdown.bat