Run Command on Remote Machine

$Credential = Get-Credential
Invoke-Command -ComputerName $Computer -ScriptBlock {Stop-Service -Name Bits}
Details
Use to run a single command or script on a remote machine.