Load Bytes Directly in Memory

I Have Bytes of a Specific application and i want it to run Directly from the memory

I will add the Bytes in My PowerShell Script and It will be run from memory without be written to HardDisk

I searched alot to understand [system.io.memorystream] and how to use it but i couldn’t find any thing useful
so i hope that any one give me a source to understand it

Do you have a sample script in e.g. C# or docu of the bytes you want to load into memory?