getting error in running command Start-AzureRmSiteRecoveryTestFailoverJob

Ok I have updated My powershell again and it seems moving on now. But I got another blocker. Coud you please help:

PS C:\WINDOWS\system32> $rpname = “myrecoveryplan”
$Vault=Get-AzureRmRecoveryServicesVault -Name “testvault”
$Context= Set-AzureRmRecoveryServicesAsrVaultContext -Vault $Vault
$recoplan = Get-AzureRmRecoveryServicesAsrRecoveryPlan -Name $rpname
Start-AzureRmSiteRecoveryTestFailoverJob -RecoveryPlan $recoplan -Direction “PrimaryToRecovery” -VMNetwork “asrtestfailtarget”
Start-AzureRmSiteRecoveryTestFailoverJob : Cannot bind parameter ‘RecoveryPlan’. Cannot convert the
“Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan” value of type
“Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan” to type
“Microsoft.Azure.Commands.SiteRecovery.ASRRecoveryPlan”.
At line:5 char:56

  • … rt-AzureRmSiteRecoveryTestFailoverJob -RecoveryPlan $recoplan -Direct …
  •                                                     ~~~~~~~~~
    
    • CategoryInfo : InvalidArgument: (:slight_smile: [Start-AzureRmSiteRecoveryTestFailoverJob], Parameter
      BindingException
    • FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.SiteRecovery.Start
      AzureRmSiteRecoveryTestFailoverJob