Sign bin file with Platform IO

I just found this pull request to Arduino core that allows signing bin files with a private key.
I’m using Windows 10 and Platform IO for Visual Studio Code.
When browsing thru PR files I found information that automatic signing is available only on Linux and Mac.

I’d like to ask would it be possible to use Advanced Scripting to automate this process using Platform IO on Windows.

POST action should help here. See Redirecting...

env.AddPostAction("$BUILD_DIR/${PROGNAME}.elf", callback...)