[Kibana] EPERM: operation not permitted, rename

I got this error message (EPERM: operation not permitted, rename) when trying to execute

./kibana-plugin.bat install x-pack

on Window Server 2012. Do not know how to solve currently.

Finally it is solved using offline installation.

$ ./kibana-plugin.bat install file:///E:/Yuting/x-pack-5.6.15.zip
Found previous install attempt. Deleting...
Attempting to transfer from file:///E:/Yuting/x-pack-5.6.15.zip
Transferring 160185588 bytes....................
Transfer complete
Retrieving metadata from plugin archive
Extracting plugin archive
Extraction complete
Optimizing and caching browser bundles...
Plugin installation complete