I\'m getting the following error message:
The term \'appcmd\' is not recognized as the name of a cmdlet, function, script file, or operable program. C
I don't like to manually play with PATH or system env. The portable solution is to use the full path and name of the command:
For example, to recycle an app pool:
%systemroot%\system32\inetsrv\appcmd.exe recycle apppool /apppool.name:"my website app pool name"