Hello!
I tried to create an application using your script as we would like to assist our service desk rotating filevault key for macOS users.
However, when I type a wrong password, the return result is not getting processed. It says 'Successfully Changed FV2 Key' every time.
Have you ever tried testing this scrip using Platypus?