Add immy tag from command

Hey, Anyone know is there any command or function we can use for the script to add the tag for a machine beside the API method?