Appcmd.exe
exists at the location %systemroot%\system32\inetsrv\
. You either need to update your PATH variable to add the path %systemroot%\system32\inetsrv\
like
SET PATH=%PATH%;%systemroot%\system32\inetsrv\
or you can use Set-Location
to first go to the location of Appcmd.exe
like
Set-Location %systemroot%\system32\inetsrv\
and then run you command.
OR you can use the following:
c:\windows\system32\inetsrv\appcmd.exe