No, a basic scripted jobs cannot replace HR. Maybe they can supplement some functions of management or HR type jobs.
Tier-1 helpdesk though - for example for some ISP’s - literally work from a script. They have a fixed set of questions or workflows they can answer, and aren’t supposed to deviate from such.
Think “Have you restarted your modem? What lights are showing? etc”