The increased use of PowerShell in attacks [pdf]
PowerShell is obviously a much better scripting language than the ancient DOS BAT &quot;language&quot; (if you can call it that). In theory it&#x27;s also mostly ubiquitous on Windows which means that you can rely on it being there when creating a script. Yet I&#x27;ve found that often people keep using BAT files (e.g. in build scripts, etc). I think it is because you cannot just execute a PowerShell script unless it is signed or the user has manually enabled non signed script execution (by executing a command on the PowerShell command). This means you cannot rely on it just working, at which point it&#x27;s often best to fall back to DOS or use another scripting language such a Python.<p>I understand that this is done for security reasons, but Windows already lets you execute any executable or BAT file that you might have downloaded from the Internet. So I&#x27;m not sure that disabling PowerShell script execution really gains you much (and there are probably other better solutions anyway).<p>So IMHO as long as DOS is available and PowerShell is so limited by default BAT files will not go away, which is unfortunate.