Does SQLCMD "!!" command work in Azure Data Studio
This is a known open issue with SQLCMD in ADS, where SQLCMD mode fails to parse some sqlcmd keywords. The issue is currently on the backlog.
ADS includes a terminal window (View--&gt;Terminal) so  you can easily run OS commands on your client under the same query tab without SQLCMD.