ChatGPT doesn't know how to write a 3ds Max script to import Delta Force Black Hawk Down *.BAD files

https://chatgpt.com/share/67925506-8db0-8004-aa17-4cb855f81c40

I asked but ChatGPT writes a broken 3ds Max script or Python code file to parse Delta Force Black Hawk Down *.BAD. Can anyone help me out to fix this?