I think you need additional quotes and have to escape to get them included.
Give me a minute and I will see if I have an example.
It is not escaping the quotes or space but using another pair of single ticks inside the DB path double ticks.
See example for greater clarity.
tell amgr run "'D:\Domino\data\Name With Space\DBDev.nsf'" 'AgentNAme'