sudo softwareupdate --ignore 'macOS Big Sur'
Note: on catalina if mac is not in DEP, this will only ignore OS updates but not OS upgrade and this command is depreciated in Big Sursudo softwareupdate --ignore 'macOS Big Sur'
defaults delete com.apple.systempreferences AttentionPrefBundleIDs
defaults delete com.apple.systempreferences DidShowPrefBundleIDs
defaults write com.apple.preferences.softwareupdate LatestMajorOSSeenByUserBundleIdentifier com.apple.InstallAssistant.Catalina
defaults write com.apple.preferences.softwareupdate ProductKeysLastSeenByUser 061-21551
killall Dock
softwareupdate --ignore "macOS Big Sur"
to verify if mac is enrolled in MDM or DEP USE FOLLOWING command
profiles status -type enrollment