I am trying to run a powershell script that executes a python exe file which takes a json file as an argument.
I checked my json file, and the contents are valid.
My powershell script looks like so:
& "C:RPA001-DHRDHR_ConsolidateMarksDHR_ConsolidateMarks.exe" test.json
The error message is:
At C:Userssrv_hq-rpa-bot1AppDataLocalTempRobinf0f3xbjmnlo.tmp.ps1:1 char:75 + ... DHRDHR_ConsolidateMarksDHR_ConsolidateMarks.exe" {"Items":[{"Name": ... + ~~ Unexpected token ':[' in expression or statement. At C:Userssrv_hq-rpa-bot1AppDataLocalTempRobinf0f3xbjmnlo.tmp.ps1:1 char:84 + ... dateMarksDHR_ConsolidateMarks.exe" {"Items":[{"Name":"JAron","File": ... + ~~~~~~~~ Unexpected token ':"JAron"' in expression or statement. At C:Userssrv_hq-rpa-bot1AppDataLocalTempRobinf0f3xbjmnlo.tmp.ps1:1 char:92 + ... ateMarksDHR_ConsolidateMarks.exe" {"Items":[{"Name":"JAron","File":" ... + ~ Missing argument in parameter list. + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : UnexpectedToken
Not sure what exactly is going wrong here since my JSON is valid and I do not see anything wrong with my powershell script. Any suggestions would help