Hello @J S , you can use MSAL from PowerShell trough MSAL.PS, a community driven project. Also, take a look to How to use MSAL.NET from PowerShell.
Let us know if you need additional assistance. If the answer was helpful, please accept it and rate it so that others facing a similar issue can easily find a solution.