Custom scripts and logging

There needs a feature of being able to run scripts on media, custom definable, and logable.

Write a scripts to process media; ie. remove commercials, custom transcode, move to a different storage, or whatever.

Be able to select a script to choose to run a script on single media, or selection of media.

Log that the script has been ran on the media, so media that hasn’t been processed can be discovered, selected, and processed.

This stems from the post processing scripts when using DVR fails to act as needed, I need to be able to a) discover why it’s not running properly from plex, when it works fine from the command line, and b) be able to mass pre-process media; for commercial removal, and other media for transcoding to acceptable audio formats as I don’t want to transcode all the time when my mom is streaming from my server.