intune_storage.psm1

function uploadSW($uploadpath,$destinationpath)
{
"upload"
$uploadpath
$destinationpath
    new-AzStorageDirectory -Context $Context -ShareName 'software' -Path $destinationpath -verbose
$0files=Get-ChildItem -Path $uploadpath -file
     foreach ($0file in $0files)
     {
        $0filename=$0file.name
        $0filename
        Set-AzStorageFileContent -Context $Context -ShareName 'software' -Path "$destinationpath/$0filename" -Source $0file.fullname -verbose
     }
}

function downloadSW($downloadpath,$destinationpath)
{
"download"
mkdir $downloadpath
$destinationpath
    Get-AzStorageFile -Context $Context -ShareName 'software' -Path $destinationpath | Get-AzStorageFile | Where-Object {$_.GetType().Name -eq "AzureStorageFile"} | Get-AzStorageFileContent -destination $downloadpath
}