Cannot pass arguments to Python script when executed by blender.exe
You can't use 

return parser.parse_known_args(sys.argv)


Because what you have in sys.argv is '-- --input-folder...' 
Instead, cut off the '--' from the string. 

return parser.parse_known_args(sys.argv[sys.argv.index("--")+1:])