Hi @Nandan Hegde ,
you could just add the [array]
in front of the variable name.
Maybe this helps:
[array]$a = "test1"
[array]$b = "test3","test4"
($a + $b).Count
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten