Update synch.sh

Uses functions and a case statement to get parameters from CLI and save me ~6+ keystrokes.