First, transfer speeds according to experiments carried out
on the WinBeta website :

Therefore, connecting the computer and device to the router using cable
and USB 2 may be a faster solution than Wi-Fi Direct.
Nevertheless, here is my answer.
1. Check for the existence of the Wi-Fi Direct adapter
You should first check if a Wi-Fi Direct adapter is available on your computer.
Enter in the Command Prompt (cmd) the command ipconfig /all. If available, you should see an entry such as this:

2. If the Wi-Fi Direct adapter exists
Even if the adapter exists, the relative immaturity of the WiFi Direct
protocol means that file transfers cannot be completed without a third party app such as Feem, which offers free-to-try Modern and Desktop apps, as well as apps for Android, iOS and Windows Phone 8 at their app store.
Both the Windows 8.1 computer and the device should be connected to your wireless network, and Feem launched on both. You may need to specify the downloads folder in the Settings screen.
I have not personally used Feem, but it is recommended by several well-know websites.
3. If the Wi-Fi Direct adapter does not exist
If your network card is made by Intel and is compatible, you can install Intel My Wi-Fi Dashboard to enable WiFi-Direct.
This should theoretically already have been installed on your computer together with
the network driver. If it is not available on your computer, I advise to download
from Intel and install the full driver package for your network card.
If still unavailable, you can try to download the stand-alone package from Intel at
Intel My WiFi Dashboard Software for Windows 8.
For other network cards, you should search the manufacturer website
or get in touch with their Support.