If you are trying to use /host.scan -c *mask* then the line "if (# == $null) { halt }" will be halting the alias because # is null if you're typing in the status window. Remove that line from the alias.
Also make sure you are somehow setting the %hostmark variable, or change the alias to use runtime arguments ($1 $2 etc)