Hello Criti,
Thanks for your question. To do this, I will recommend using New-PSDrive CMdelet to map the File share as a network drive.
New-PSDrive -Name "Public" -PSProvider "FileSystem" -Root "\\<FileSharePath"
FileSharePath should assume the format: <storage-account-name>.file.core.windows.net<file-share-name> as documented here:
After doing this, you can proceed to deploy the script directly as an Intune PowerShell script.
See: https://learn.microsoft.com/en-us/mem/intune/apps/intune-management-extension
Please let me know if you have further questions
You can mark it 'Accept Answer' if this helped.