I have two servers Server A and Server B. I want to stop server A from Server B remotely using Powershell script.
Because you asked for Powershell:
(Get-WmiObject Win32_Service -ComputerName ServerA -Filter "Name='iisadmin'").InvokeMethod("StopService", $null)
Agreed this question should be moved to ServerFault.