In regards to question 2, just use: /run path\file params
Note that if there are spaces in the path or filename, you'll need to enclose it in quotes: /run "path with spaces\file" params
As for number 1, I know it's possible, but someone else who has worked with writing DLLs will have to explain how.