Mount Encrypted External Drive

I have an external SSD plugged in and mounted at all times for backup but would like to keep it unmounted but still plugged in. Need a script that will mount it and insert the encryption password.