How can I pass python script file and input image folder path as params using postman?

This should get you close.

[{"id":"01c58f6780f2bca6","type":"inject","z":"1ca1817447127d22","name":"Click me","props":[],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":740,"y":1360,"wires":[["01cf58bcac76275f"]]},{"id":"01cf58bcac76275f","type":"function","z":"1ca1817447127d22","name":"Prepare Req","func":"// original curl:\n// curl --location 'http://127.0.0.1:1880/test'\n// --header 'Content-Type: application/json'\n// --data '{\n// \"filepath\":\"E:/node_red\\imagefootprint\\test.py\",\n// \"folderpath\":\"E:\\node_red\\imagefootprint\\All_Photos\"\n// }'\n\n// msg.method = \"post\" // set in HTTP Request node\n// msg.url = \"http://127.0.0.1:1880/test\" // set in HTTP Request node\nmsg.payload = { \"filepath\":\"E:/node_red/imagefootprint/test.py\", \"folderpath\":\"E:/node_red/imagefootprint/All_Photos\" }\nmsg.headers = {\n    \"Content-Type\": \"application/json\"\n}\nmsg.cookies = null\nreturn msg","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":[],"x":900,"y":1360,"wires":[["18934d909e2b7e17"]]},{"id":"18934d909e2b7e17","type":"http request","z":"1ca1817447127d22","name":"","method":"POST","ret":"txt","paytoqs":"ignore","url":"http://127.0.0.1:1880/test","tls":"","persist":false,"proxy":"","insecureHTTPParser":false,"authType":"","senderr":false,"headers":[],"x":1080,"y":1360,"wires":[["e3bfe32460731038"]]},{"id":"e3bfe32460731038","type":"debug","z":"1ca1817447127d22","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1260,"y":1360,"wires":[]},{"id":"3be22cdf9fbf4d48","type":"comment","z":"1ca1817447127d22","name":"Your curl as a flow","info":"","x":770,"y":1320,"wires":[]},{"id":"54f2775e139a7ab5","type":"http in","z":"1ca1817447127d22","name":"","url":"/test","method":"post","upload":false,"swaggerDoc":"","x":730,"y":1460,"wires":[["074c6e4b59345683"]]},{"id":"fc06c214b41b320d","type":"http response","z":"1ca1817447127d22","name":"","statusCode":"200","headers":{},"x":1260,"y":1500,"wires":[]},{"id":"d70b58b741ed1110","type":"comment","z":"1ca1817447127d22","name":"Create an endpoint","info":"","x":770,"y":1420,"wires":[]},{"id":"074c6e4b59345683","type":"change","z":"1ca1817447127d22","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"[]","tot":"json"},{"t":"set","p":"payload[0]","pt":"msg","to":"req.body.folderpath","tot":"msg"},{"t":"set","p":"payload[1]","pt":"msg","to":"req.body.filepath","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":1540,"wires":[["a58ffbf473dfce6f","34e16093eaaf5551"]]},{"id":"a58ffbf473dfce6f","type":"exec","z":"1ca1817447127d22","command":"dir","addpay":"","append":"","useSpawn":"false","timer":"","winHide":false,"oldrc":false,"name":"","x":1030,"y":1540,"wires":[["fc06c214b41b320d"],["3d9d07f05c08e13f"],[]]},{"id":"34e16093eaaf5551","type":"debug","z":"1ca1817447127d22","name":"debug 309","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1000,"y":1600,"wires":[]},{"id":"3d9d07f05c08e13f","type":"http response","z":"1ca1817447127d22","name":"","statusCode":"400","headers":{},"x":1260,"y":1560,"wires":[]}]

You will need to change the exec to call python and maybe change the "change node" about.

NOTE: always use / instead of \ in your paths.