scripts: Clean-up ZMM API, and include more command options