I want to check if the content of variable A is present in the content variable B with powershell:
variable A = PROD
variable B = xxxxxPRODxxxx
you can use -match to compare using regex
$keyword = 'PROD'
$string = 'xxxxxPRODxxxxx'
if($string -match $keyword){write-host 'matched'}