Added min() and max() script commands

- Special thanks to Streusel, Xgear

Signed-off-by: Haru <haru@dotalux.com>