Presuming Presentation.pptm is open and the sub exists that depending on what you mean by command line that should work.
It's probably not the way to do it though. Why not create a ppam AddIn that creates a ribbon button to run the code on any active presentation?
|