PowerShell Verifique o final da corda
#Program to check if string 1234 comes at the end of the string
$str="checking1234"
if ( $str.endswith("1234") )
{
echo "String $str ends with 1234"
}
Careful Chamois