Moq adaptation for Powershell