Try the following:
$ComputerName = "RemoteComputerName"
$Credential = Get-Credential # Enter credentials for accessing the remote computer
$CimSession = New-CimSession -ComputerName $ComputerName -Credential $Credential
# Query scheduled tasks
Get-ScheduledTask -CimSession $CimSession
# Close the remote session
Remove-CimSession -CimSession $CimSession
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin