A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.
We can certainly help here, but a bit more information first, please.
"Embed file inline" is a Word concept. It has no equivalent in PowerPoint, where you'd normally insert an image. That's why your code doesn't work in PPT.
What exactly do you want to accomplish? If you were to do this manually, would you choose Insert | Picture | etc. or would you choose Insert | Object? Put another way, do you just want to add a picture to your presentation or do you want to create a button that will launch another program and load the chosen image?
Finally, when you reply, please post your code by copy/pasting in the actual text; that way anyone who wants to help you can try out the code themselves. With just a picture of your code, someone would have to retype the whole thing, which is a bit much to ask of volunteers (and anyone here who can help you is a volunteer; the paid help will just tell you to go to a different forum).