"Original Vaues are "+$param1+" & "+$param2
"swapped Vaues are $param1 & $param2"
this I tried and worked
as I am new to this but
my question is that is so simple and this can be done in any programming language with same syntax so how can I reduce the code in power shell Or in other ways how can it get easy than this