#Requires -Modules VagrantMessages $check = $(-Not (-Not (Get-Command "Hyper-V\Get-VMSwitch" -ErrorAction SilentlyContinue))) $result = @{ result = $check } Write-Output-Message $(ConvertTo-Json $result)