Fetch data from release id and then write without interaction

I’m trying to set up a bash script to prompt when writing metadata to a file, even if the file already have metadata. However, after the script runs, it prompts another question. Does anyone have a better approach? Additionally, I need to be able to provide a MusicBrainz ID as part of the script.

#!/bin/bash

file_directory="/home/user/Music"
file_name="CL - Hello Bitches"
filepath="$file_directory/$file_name"

command="/home/user/.local/bin/beet import --write -S ca938a0d-8756-4862-9245-d823ffba6852"
echo "A" | ${command} "${filepath}"

beet config file

directory: /home/rakma/Music
import:
    copy: no
    write: yes
    log: beetslog.txt
plugins: inline convert web fetchart embedart
convert:
    auto: no
embedart:
    auto: yes

Seems i got it working and also did some changes to the config file

directory: /home/user/Music
import:
    copy: no
    write: yes
    log: beetslog.txt
plugins: inline convert web fetchart embedart lastgenre
convert:
    auto: no
embedart:
    auto: yes
    remove_art_file: yes
lastgenre:
    auto: yes
    count: 2