Heya Bunnyshot
There is a specific command for companion pets.
/summonpet De-Weaponized Mechanical Companion
The issue will be that both summonpet and Call Pet invoke a GCD which means you cannot use them both at the same time in a macro. I’d suggest using Call pet first and then summon pet like this.
/cast Call Pet 1
/summonpet De-Weaponized Mechanical Companion
You will have to press the macro twice but it will at least get you where I suspect you want to me. Call Pet will be ignored on the second press of the macro because you already have you pet out. While Summon Pet will dismiss the companion if used twice in a row.
Hope that helps!