I'm having an issue with the Powershell task of Azure Devops.
If I run this from the a command window in my build server; it will work sqlcmd -S tcp:$(servername).database.windows.net -U $(login) -P $(password) -d $(dbname) -i $(sqlfile) -o $(outputfile)
but if I call that from an azure powershell task using Invoke-SqlCmd it fails with this error: "The term 'Disable-AzContextAutosave' is not recognized as the name of a cmdlet, function, ..."