Is MyProgram.exe on your PATH?
I'm able to use the following in a batch file on Windows 10 and pass the /p parameter to EditPadLite (to open in Print Preview) and have it work with Open With.
Code:
"C:\Program Files\Just Great Software\EditPad Lite 7\EditPadLite7.exe" /p %1