Copies a single operator, the PSOperator operator from sqlserver2014a to sqlcluster, using SQL credentials for sqlserver2014a
and Windows credentials for sqlcluster. If an operator with the same name exists on sqlcluster, it will be dropped and recreated because -Force was used.

Shows what would happen if the command were executed using force.
#>[CmdletBinding(DefaultParameterSetName="Default",SupportsShouldProcess=$true)]param([parameter(Mandatory=$true)][object]$Source,[parameter(Mandatory=$true)][object]$Destination,[string[]]$Operators,[switch]$Force)PROCESS{$operators=$psboundparameters.Operators$serveroperators=$sourceserver.JobServer.Operators$destoperators=$destserver.JobServer.Operatorsforeach($operatorin$serveroperators){$operatorname=$operator.nameif($operators.length-gt0-and$operators-notcontains$operatorname){continue}if($destoperators.name-contains$operator.name){if($force-eq$false){Write-Warning"Operator $operatorname exists at destination. Use -Force to drop and migrate."continue}else{If($Pscmdlet.ShouldProcess($destination,"Dropping operator $operatorname and recreating")){try{Write-Verbose"Dropping Operator $operatorname"$destserver.jobserver.operators[$operatorname].Drop()}catch{Write-Exception$_continue}}}}