Windows restricts the creation of symlinks to admin users. You need to grant your user additional permissions to create symlinks. If your user is part of the admin group, you always need to run your code with administrator rights.
If you you run into
operation not permitted errors while creating symlinks on Windows, have a look at your user permissions.