added Powershell version with macros and min working example