Acronis True Image allows you to specify commands or even batch files/scripts that will be executed before and after the backup procedure. See product documentation for more info
You can use any script type that is supported by the operating system or installed manually, e.g. cmd, bat, ps1, vbs and others.
This article provides instructions for running a pre-backup command on a virtual machine when performing agentless backup