allow ps scripts to run:
set-executionpolicy remotesigned
random things:
$x | Get-Member
m = [regex]::Match($line, '\[(.*)\]')