Itried those both, am getting a cmd error
PS C:\Windows\System32> Get-TransportRule | where { $_.SenderNotificationType -ne $null -or $_.MessageContainsDataClassifications -ne $null -or $_.ExceptIfMessageContainsDataClassifications -ne $null -or $_.HasSenderOverride -eq $true -or $_.ExceptIfHasSenderOverride -eq $true }
Get-TransportRule: The term 'Get-TransportRule' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
And
PS C:\Windows\System32> Get-TransportRule | where { $_.DlpPolicyId -ne [Guid]::Empty }
Get-TransportRule: The term 'Get-TransportRule' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.