made do not use invoke-expression but script blocks, and added do example