function Stop-IISOnly { <# .SYNOPSIS Stops IIS by running iisreset /stop #> [CmdletBinding()] param( ) $logLead = (Get-LogLeadName); Write-Output "$logLead : Stopping IIS..."; Invoke-Command { C:\Windows\System32\iisreset.exe /stop } | Out-Null; Write-Output "$logLead : Done"; }