[CB-4544] Adds a --query flag to query the user for their password when we need it
- Rewrite the run script for maintenance