Does PowerShell compile scripts?
PowerShell V2 and earlier never compiled a script, it was always interpreted via virtual “eval” methods in the parse tree. PowerShell V3 and later compile the parse tree (the AST) to a LINQ expression tree, which is then compiled to a bytecode, which is then interpreted. If the script is executed 16 times, the script … Read more