You are missing a dot between the object and Subject. You should confirm this command runs locally in PS before adding it to the script block to ensure the command is correct.
Invoke-command -computername server1 -ScriptBlock { dir cert: -Recurse | Where-Object { $_.Subject -like '*server1*' }}
For the comparison itself like is a pattern so if you want to find any value with the string in it then you need to wrap it in wildcards (*). Alternatively you can use match which uses regular expression. In this case something like -match 'server1' produces the same results because RE matching will look for any string that contains the given value.