Function abc ($IDtag) {
$a = $IDtag
}
foreach ($item in $list) {
abc $IDtag
write-host $a
}
Above code doesnt work. How do I pass the value back? Thanks
Function abc ($IDtag) {
$a = $IDtag
}
foreach ($item in $list) {
abc $IDtag
write-host $a
}
Above code doesnt work. How do I pass the value back? Thanks