Works only for PowerShell v3