FilterScript for Computername

I am trying to make a filter script that filters by computer name. Here’s what I have so far:
$Boolean = ($env:COMPUTERNAME.contains(“LT”))
Get-ImmyComputer | ?{Boolean}
When I put this filterscript into the deployment, no computers come up even though there are computers under that tenant that have LT in the name. Is there some sort of property that I am missing?

I created a sample filter script in the global repository:
Computer Name Contains “VM”