Thanks Lexikos for How to: Run Dynamic Script... Through a Pipe!
This is generally not different to Lexikos example, just little more compact and user friendly.
I release it especially to support CreateScript for non dll AutoHotkey scripts.
Download DynaRun.ahk - or - DynaRun.ahk (v2 version)
DynaRun("MsgBox Pipe","Title from pipe")
To use DynaRun() in compiled script you will need to compile AutoHotkey.exe (not AutoHotkeySC.bin) from AutoHotkey_H pack with compiler included in the pack.