Running the same script in bat file by launching it won't work, but if I copy the command and paste to an open command prompt, it will work. the command is "C:\Program Files\Python36\python.exe" -path-to-script- -params "paramvalue" Traceback (most recent call last): File "C:\SpecialScripts\STREAM_PULL\vimeo_audio\vimeo_aud_spec.py", line 111, in content = resp.json() File "C:\Program Files\Python36\lib\site-packages\requests\models.py", line 866, in json return complexjson.loads(self.text, **kwargs) File "C:\Program Files\Python36\lib\json\__init__.py", line 354, in loads return _default_decoder.decode(s) File "C:\Program Files\Python36\lib\json\decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "C:\Program Files\Python36\lib\json\decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)