How to start uiautomatorviewer in cmd?

Hi, I followed the steps to install appium from this link : “http://www.automationtestinghub.com/setup-android-environment-variables/

but when i try to start ui automator viewer, it gives me access denied error.

any ideas ?