get-counter in powershell 7 core is not recognized

Hi all,
i was running Get-counter command in powershell 7 core. i am getting bellow error. i try to use Install-Module WindowsCompatibility utlity but still i am not able to use in core edition both 6 and 7 but i can run in powershell 5

"get-counter : The term 'get-counter' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-counter
+ ~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-counter:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException"

Using compatibility module, this is how it is.

Invoke-WinCommand -ScriptBlock {Get-Counter}

What is get-counter?

cmdlet to get the performance counter.

Oops, I was looking in osx.

get-counter?