# [PowerShell] 7, <sup><strike>133 127 126 124 120 119 117</strike></sup> 106 bytes Takes input as an array of directives; the output is a TIO-Compatible PowerShell program. <!-- language-all: lang-powershell --> '$a=0;switch($args[0]|% T*y){' $args|%{$1,$2,$3=$_ "$1{`$a=" $2[1]?"""`$a*""*$3+1|iex}":"`$a$2$3}"} "}`$a" Link is to a 120-byte TIO-Friendly (PowerShell 6 and below) version of the code. [Try it online!][TIO-Friendly-Generator] And, of course, [Try The Output Interpreter!][TIO-Interpreter] [PowerShell]: https://github.com/TryItOnline/TioSetup/wiki/Powershell [TIO-Friendly-Generator]: https://tio.run/##HcvRCoIwFMbxe58iDkeOzkU6CYIQeojuIspqpSBULrCYe/Z1tovv4veH7/Wc9Gg6PQzeE7ZNuTVT/7l2GbbjwxzK45wu9uKXW0pimVOLlUQlsW7wlABW9sw3SPp7hmqp3yQE5RYAOAsAgXVRzb3@OnB6MNqGjgprtkvAscB7v8uoJRm@ss6DLkEkVcSVUZCs1lE3VkOyjNCMFW9D@R8 "PowerShell – Try It Online" [TIO-Interpreter]: https://tio.run/##K8gvTy0qzkjNyfn/XyXR1sC6uDyzJDlDQyWxKL042iC2RlUhRKtSs5orsRoozaWkkqilpGWsbViTmVpRy5UEFgSKGdVyJUPZ2oamtVwpUI6tQS1XKpStb1HLVauS@P//f/XkxKSU5KSkVHUA "PowerShell – Try It Online"