run powershell .ps1 external script post processing?

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
crazydrve
Posts: 1
Joined: 06 Oct 2025, 23:24

run powershell .ps1 external script post processing?

Post by crazydrve »

Hello,

Ive been trying to undertand the scripting and automation options but having no luck, is there any way to have filebot run a powershell script post process?

IE I have a powershell .ps1 file that I like to run to convert my files to mp4.
User avatar
rednoah
The Source
Posts: 24281
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: run powershell .ps1 external script post processing?

Post by rednoah »

:?: What have you tried so far?


:arrow: You can run .ps1 scripts just like any other executable. See Custom Post-Processing Scripts › Run Command for details and examples.

e.g.

Groovy: Select all

{ source, target ->
	system 'C:/Tools/MyScript.ps1', source, target
}

:arrow: Alternatively, you can also just call ffmpeg directly akin to the Custom Post-Processing Scripts › Set Media Title example:

Groovy: Select all

{ source, target ->
	if (ext == /mkv/) {
		system 'ffmpeg', '-i', target, target.dir / target.nameWithoutExtension + '.REMUX.mp4'
	}
}
:idea: Please read the FAQ and How to Request Help.
Post Reply