param([String]$Version="0.0.0");

ForEach ($category in "Core", "Modules", "Bundles")
{
    ForEach ($folder in (Get-ChildItem -Path $category -Directory))
    {
        dotnet pack $folder.FullName --configuration Release --nologo /p:ContinuousIntegrationBuild=true;
        nuget push "$($folder.FullName)\bin\Release\$($folder.Name).$($Version).nupkg";
        nuget push "$($folder.FullName)\bin\Release\$($folder.Name).$($Version).snupkg";
    }
}

param([String]$Version="0.0.0");

ForEach ($category in "Core", "Modules", "Bundles")
{
    ForEach ($folder in (Get-ChildItem -Path $category -Directory))
    {
        dotnet pack $folder.FullName --configuration Release --nologo /p:ContinuousIntegrationBuild=true;
        dotnet nuget push "$($folder.FullName)\bin\Release\$($folder.Name).$($Version).nupkg";
        dotnet nuget push "$($folder.FullName)\bin\Release\$($folder.Name).$($Version).snupkg";
    }
}

Use dotnet nuget instead of nuget
Use dotnet nuget instead of nuget
