You cannot use "DisplayNames" to do this. You must use an identity. You cannot use an array or names. You must do them one at a time using the UserPrincipalName.
"RemoveLicenses" requires a array of licenses and cannot use a wildcard.
To learn how to use any CmdLet use "help"
help Set-MsolUser -Full
Before asking any question about a command please read the help first. Most of the time the answer you seek will be in the help.
\_(ツ)_/