ok let me try this
(Edit: I'm not an operating system guy, I don't know much about windows, so this might not work, I'm just letting you know a fact)
In windows, if your username has a space, if the script is running as a user, it can't find it because the user doesn't have much privileges to find the folder you're looking folder.
As an admin, since it has more privileges than the average user, it can find the folder.
The user would only find: C:\users\AAYAN.
However, the admin would find: C:\users\AAYAN DWIVEDI.