Question: begin is not recognized as the name of a cmdlet?
Answer: begin : The term 'begin' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. The trick is simple: there can be NO executable code outside the B/P/E blocks.