The commands provided in the post did not work for me, however by tinkering just a little, they ran just fine, so I'll share these changes.
In case the commands don't work, try this:
1. Instead of:
cd %PROGRAMFILES(X86)%\Microsoft\Edge\Application\<edge version>\Installer
use
cd...