Add .NET implementation of check_pid

closes #6243