Reset Mikrotik via Script from Terminal - MikroTik Script RouterOS

How to reset Mikrotik via a script from the scheduler or from scripts or terminal

/system reset-configuration
Credit: wiki.mikrotik.com