This will work if you are running the Distribution Agent on a schedule. Edit the Distribution Agent SQL Agent job. Add a step prior to the Run Agent job step to execute a SQL script on the Publisher. Then add a step after the Run Agent job step which executes sp_addscriptexec to post a SQL script to the Subscriber.
I have a post describing sp_addscriptexec in Executing scripts with sp_addscriptexec. I recommend trying this in your test environment prior to deploying to production.