Description
When executing spo listitem list and adding a value to the option filter, for example Title eq 'Test', I get the following error:
Error: The expression "Title eq ''Test''" is not valid.
I noticed that the single quote that I add in the filter option is doubled. I've had a quick look in the code and noticed that this makes sense, as the formatting.encodeQueryParameter replaces all the occurences of a single quote to a double quote. (see snippet below)

Steps to reproduce
- Execute the command
m365 spo listitem list --webUrl {webUrl} --listTitle 'Test' --filter "Title eq 'Test'"
Expected results
List of items with 'Test' as title
Actual results
Error: The expression "Title eq ''Test''" is not valid.
CLI for Microsoft 365 version
v6.0.0
nodejs version
v16.13.0
Operating system (environment)
Windows
Shell
PowerShell
Description
When executing
spo listitem listand adding a value to the optionfilter, for exampleTitle eq 'Test', I get the following error:Error: The expression "Title eq ''Test''" is not valid.
I noticed that the single quote that I add in the filter option is doubled. I've had a quick look in the code and noticed that this makes sense, as the

formatting.encodeQueryParameterreplaces all the occurences of a single quote to a double quote. (see snippet below)Steps to reproduce
m365 spo listitem list --webUrl {webUrl} --listTitle 'Test' --filter "Title eq 'Test'"Expected results
List of items with 'Test' as title
Actual results
Error: The expression "Title eq ''Test''" is not valid.
CLI for Microsoft 365 version
v6.0.0
nodejs version
v16.13.0
Operating system (environment)
Windows
Shell
PowerShell