subprocess.Popen
expects that the command is split up into escapable chunks:
['foo', '-a', 'bar', '--baz']
Your command should be a list of arguments:
cmd = [
'C:\\Program Files\\Handbrake\\HandbrakeCLI.exe',
'-i', filepath,
'-o', outputPath
]