Section Access is possible only in the Enterprise version of Qlik Sense. It is not available in the Desktop Version.
And there is no automatic way of creating the tab.
You need to manually create the section before the Main and type Section Access; and Section Application; yourself to define the security and the main part of the script.
I hope this helps