I think you just want to run the "open=" command when you want to start it, and the "shell/dismount/command=" when you want to stop/dismount it.
[PS. Next time, just copy & paste the actual text from a notepad file, no need for a screenshot of text]
So maybe a batch file for each of the commands would work - basically just a file in notepad with the one line, and named "start.bat" & "dismount.bat". I'm not too sure if "start" needs both lines, or just one, but you can test in a command prompt/terminal.
start.bat:
VeraCrypt/VeraCrypt.exe /q background /e /m rm /v "KeePass" VeraCrypt/VeraCrypt.exe
dismount.bat:
VeraCrypt/VeraCrypt.exe /q /d