execute raw shellcode in cmd

I am a student learning computer science. I want to know raw shellcode can be run in windows cmd or not. Is it possible to run raw shellcode in cmd environment? If possible, how can it be implemented? Thanks in advance.