Unable to Import bulk Users with server script/client script

Hi guys, Need some help with a task as seen below.

Here is the task: a script was setup in erpnext that will create users with a default password, email the employees and force change on login but didn’t work with an error like “name ‘inplacevar’ is not defined” even after editing the script in various ways, using DocType Event - After Save with Reference Document Type - Employee

On not able to access the bench console, Tried using API METHOD but had issues getting the needed endpoint URL, to use with POSTman. Pls, i’ll appreciate any support on this task.