My take is a bit more nuanced. If you have a full license, then all you you need to do is follow the law in the state you are in. Best practice is to have some sort of documentation. If your partner is enrolled in your EMR, you can simply add a note to their file. Or you can keep your own record as mentioned above -- and an electionic version in an electronic "drawer" is fine also. Ativan is a no-no to family members.
If you're on a training license, it's much more complicated. Everything you do should be supervised by someone. Just writing a script, even for something benign, is technically a problem. Will anyone notice / care? Probably not. But if someone does look, could be a huge problem for you from your training program. In that case, I'd recommend running it by someone and including that in your documentation.
The chance of badness is very small.