This is nowhere near the amount of details required for someone to be able to help you. Tell us what you are doing, how you are doing it, share the workflow, explain where and when the error happens, how the AD is related, how the freshservices are related, did it always happen or just started, did this workflow work before or this is a new workflow, … I mean, give us something…
I am using the path this below code
powershell -NoProfile -ExecutionPolicy Bypass -Command “& ‘D:\Scripts\UserAccountUnlock.ps1’ -UserId ‘$($json.username)’ -TicketId ‘$($json.ticketId)’ -RequestedBy ‘$($json.requesterEmail)’ -Json”
also am guessing the credentials being used have permission to access that path, have u tried ssh outside of n8n from local machine does that work okay?
u could try run these commands instead first see if they working