Serial Monitor button on bottom task bar. - How do I get working

New to the PlatformIO environment. I am using version 3.3.3 (2024-01-26).
I have an ESP32 project that compiles and runs ok.
If I use the PlatformIO menu “General/Monitor” I can see the output of the ESP32.
If I use the “Open Serial Monitor” under PlatformIO Big Buttons, it also works.
However if I use the “Serial Monitor” button on the PlatformIO bottom task bar I get the following message.
“platformio : The term ‘platformio’ is not recognized as the name of a cmdlet, function, script file, or operable program.”
My question is… how do I make the “Serial Monitor” button work correctly?