You can programmatically create new libraries and shared variables in a LabVIEW project without using the LabVIEW DSC Module by using VIs that ship with LabVIEW. You won't be able to find these VIs in the Functions Palette in LabVIEW - instead, you will have to find them in
C:\Program Files (x86)\National Instruments\LabVIEW 20xx\vi.lib\Utility\Variable, where 20xx is your installed LabVIEW version. The steps below outline an example program which will create a library in your project and add a shared variable of a data type you choose to that library.