I am running the following script
ffmpeg -i $Args[0] -vcodec copy -acodec copy -movflags +faststart $Args[1]
Which essentially is overwriting the original file, how can I force this to override so my powershell script doesn't error out?
File './cache/videos/1556749678654.mp4' already exists. Overwrite ? [y/N] Not overwriting - exiting
Edit I am executing this script as follows within node.js
var spawn = require("child_process").spawn,
child;
response.data.pipe(file);
child = spawn("powershell.exe", [
"./script.ps1",
`./cache/videos/${tempFileName + "."}${videoType}`,
` ./cache/converted_videos/${tempFileName + "."}${videoType}`
]);