Therefore, IF you are running on a 32 bit windows release, you could generate a 16-bit DOS executable/.COM file that would run in the NTVDM (and hence, in the console window). Access to this hardware emulator is not available in 64-bit mode. This is because in protected mode, the processor has access to the 8086 hardware emulator that is present in every x86 processor, but the host Operating System needs to know how to use it. The big exception being, if you are running in protected (loosely speaking, 32-bit) mode on any x86 cpu since the Intel 80386 that was released in 1985.
By its very nature, it is not like high level languages that are cross platform or portable between different systems in any way and so unless you are running it on a system with an 8086, you will almost always need a program to emulate the 8086. It is essentially the human readable form of the binary instructions the processor recieves. 8086 asm is the assembly language for the Intel 8086 processor.