That error has nothing to do with MDX itself, you're simply not passing a filename to the /dll command (which means your $mdx alias doesn't exist.)