Download the PsShutdown tool by SysInternals. Using this tool, you will be able to make the PC enter sleep mode directly by giving a single command:
psshutdown.exe -d -t 0 -accepteula
I recommend PsShutdown as the preferred way to send a PC to sleep.
Otherwise if you have hibernation disabled you can put sleep icon on desktop, you must have hibernation shut off or it will just go into hibernation. The above option gave it won't matter if it is off or on but this one does:
The command to put the computer to sleep is as follows:
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
However, if you have hibernation enabled, which is on by default on most computers, the command will put your PC into hibernation instead. I explained this in detail here: How to sleep Windows 10 from the command line.
So, you can create a batch file "sleep.cmd" with the following contents:
powercfg -h off
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
powercfg -h on
In the example above, I've used the powercfg command to disable hibernation, just before using the Rundll32 command. Then the rundll32 command will work correctly and put the PC to sleep.
Let's assume that you saved the batch file to the folder c:\apps. Then you create a shortcut to put Windows 10 to sleep this way:
Right click the Desktop and select New - Shortcut.
In the shortcut target box, type or copy-paste the following command:
c:\apps\sleep.cmd
Correct the file path according to your preferences.
Set the desired icon and name for your shortcut. (sleep)
Hope this helps. good luck.