We have a new sponsor! Introducting Pragma Systems. See the home page for details.
Provided xp_cmdshell is enabled you can execute something like this. xp_cmdshell 'powershell.exe -c get-service'