How can C++ or C# initialize an environment and execute Python code the same phbot

Hello admin

As my title stated, I want to ask how to run python code on C++ or C# environment. Like UI, packet variables, function hooks for python to call back to C++ or C#

Thank

@Ryan you can help me?