This commit fixes a couple of issues with the shell provisioner when the WinSSH shell is set to cmd: - A check for the .bat extension returned by File.extname - Execute inline scripts with PowerShell when upload_path ends with .ps1 * Ensure script has correct extension Co-Authored-By: Sophia Castellarin <sophia@hashicorp.com>