The solution to the SCCM error "EXECUTE permission was denied on the object 'fnlsCas'" when opening some of the Reports

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work & personal stuff via PowerShell (even silly things like food recipes list generation).
FYI:
In case you are using SCCM with SQL Server 2019 and are seeing the following error when opening some of the Reports.
EXECUTE permission was denied on the object 'fnlsCas'
Just install following SQL Server 2019 hotfix KB4538581 and you are good to go ๐





