deploy macos from terminal

Hi i have a corporate license and i am trying to write an installation script, according to these instructions:

Why the command does not work:

sudo installer -pkg "Install TeamViewerHost-idc <ConfigurationID> .pkg" -target /

Can I describe the installation process in more detail, I download the pkg file, do I need to rename it, or only in the command?