#!/bin/bash # Check if an argument is provided if [ -z "$1" ]; then echo "Usage: $0 <option>" exit 1 fi case "$1" in create) echo "Creating a new VM" ;; destroy) echo "Destroying a VM" ;; start) echo "Starting a VM" ;; stop) echo "Stopping a VM" ;; snapshot) echo "Creating a snapshot" ;; *) echo "Invalid option" exit 1 ;; esac